Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / ndp / fx / src / DataWeb / Client / System / Data / Services / Client / DataServiceResponse.cs / 1 / DataServiceResponse.cs
//----------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// data service response to ExecuteBatch & SaveChanges
//
//---------------------------------------------------------------------
namespace System.Data.Services.Client
{
using System.Collections.Generic;
///
/// Data service response to ExecuteBatch & SaveChanges
///
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1010", Justification = "required for this feature")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1710", Justification = "required for this feature")]
public sealed class DataServiceResponse : IEnumerable
{
/// Http headers of the response.
private Dictionary headers;
/// Http status code of the response.
private int statusCode;
/// responses
private IEnumerable response;
/// true if this is a batch response, otherwise false.
private bool batchResponse;
///
/// constructor
///
/// HTTP headers
/// HTTP status code
/// list of responses
/// true if this represents a batch response, otherwise false.
internal DataServiceResponse(Dictionary headers, int statusCode, IEnumerable response, bool batchResponse)
{
this.headers = headers ?? new Dictionary();
this.statusCode = statusCode;
this.batchResponse = batchResponse;
this.response = response;
}
/// Http headers of the response.
public IDictionary BatchHeaders
{
get { return this.headers; }
}
/// Http status code of the response.
public int BatchStatusCode
{
get { return this.statusCode; }
}
/// Returns true if this is a batch response. Otherwise returns false.
public bool IsBatchResponse
{
get { return this.batchResponse; }
}
/// Responses of a batch query operation.
/// The sequence of respones to operation
public IEnumerator GetEnumerator()
{
return this.response.GetEnumerator();
}
/// Get an enumerator for the OperationResponse.
/// an enumerator
System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator()
{
return this.GetEnumerator();
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//----------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// data service response to ExecuteBatch & SaveChanges
//
//---------------------------------------------------------------------
namespace System.Data.Services.Client
{
using System.Collections.Generic;
///
/// Data service response to ExecuteBatch & SaveChanges
///
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1010", Justification = "required for this feature")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1710", Justification = "required for this feature")]
public sealed class DataServiceResponse : IEnumerable
{
/// Http headers of the response.
private Dictionary headers;
/// Http status code of the response.
private int statusCode;
/// responses
private IEnumerable response;
/// true if this is a batch response, otherwise false.
private bool batchResponse;
///
/// constructor
///
/// HTTP headers
/// HTTP status code
/// list of responses
/// true if this represents a batch response, otherwise false.
internal DataServiceResponse(Dictionary headers, int statusCode, IEnumerable response, bool batchResponse)
{
this.headers = headers ?? new Dictionary();
this.statusCode = statusCode;
this.batchResponse = batchResponse;
this.response = response;
}
/// Http headers of the response.
public IDictionary BatchHeaders
{
get { return this.headers; }
}
/// Http status code of the response.
public int BatchStatusCode
{
get { return this.statusCode; }
}
/// Returns true if this is a batch response. Otherwise returns false.
public bool IsBatchResponse
{
get { return this.batchResponse; }
}
/// Responses of a batch query operation.
/// The sequence of respones to operation
public IEnumerator GetEnumerator()
{
return this.response.GetEnumerator();
}
/// Get an enumerator for the OperationResponse.
/// an enumerator
System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator()
{
return this.GetEnumerator();
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- dataSvcMapFileLoader.cs
- ToggleButton.cs
- TypeNameConverter.cs
- QEncodedStream.cs
- MorphHelper.cs
- ContainerUtilities.cs
- AttributeProviderAttribute.cs
- PartialCachingAttribute.cs
- GACMembershipCondition.cs
- ErrorsHelper.cs
- DictionaryBase.cs
- IHttpResponseInternal.cs
- DataGridSortCommandEventArgs.cs
- AssemblyName.cs
- ObjectViewListener.cs
- RunInstallerAttribute.cs
- IsolatedStorageException.cs
- AssemblyHash.cs
- InputReportEventArgs.cs
- StringPropertyBuilder.cs
- DataGridViewRowsRemovedEventArgs.cs
- BatchWriter.cs
- InfoCardTrace.cs
- FontStyles.cs
- TextDocumentView.cs
- PrivacyNoticeElement.cs
- TextElementEnumerator.cs
- DirectionalAction.cs
- WindowHideOrCloseTracker.cs
- HttpRequestWrapper.cs
- MultiView.cs
- IntMinMaxAggregationOperator.cs
- SubMenuStyle.cs
- AppliedDeviceFiltersDialog.cs
- StrokeCollection.cs
- TransformConverter.cs
- ProgressChangedEventArgs.cs
- RadioButtonStandardAdapter.cs
- RijndaelManagedTransform.cs
- LayeredChannelFactory.cs
- CommonDialog.cs
- VisualState.cs
- TypeConstant.cs
- ColumnPropertiesGroup.cs
- BoundField.cs
- ConfigurationStrings.cs
- SplineKeyFrames.cs
- XmlTextReader.cs
- MasterPageCodeDomTreeGenerator.cs
- HandlerBase.cs
- LayoutTable.cs
- WebColorConverter.cs
- BigInt.cs
- ColorInterpolationModeValidation.cs
- ContentHostHelper.cs
- ValidationEventArgs.cs
- ContainerActivationHelper.cs
- XmlSchemaSequence.cs
- SeekStoryboard.cs
- Error.cs
- MergeFailedEvent.cs
- Random.cs
- recordstatescratchpad.cs
- TextBoxBase.cs
- CheckBoxField.cs
- XmlFormatExtensionAttribute.cs
- dataprotectionpermissionattribute.cs
- MultiSelector.cs
- MiniMapControl.xaml.cs
- TraceSection.cs
- TemplatePropertyEntry.cs
- DataGridLinkButton.cs
- EditingCoordinator.cs
- WebPartHeaderCloseVerb.cs
- AuthenticationModuleElementCollection.cs
- ModelPropertyCollectionImpl.cs
- ParserStreamGeometryContext.cs
- DataKeyCollection.cs
- ControlLocalizer.cs
- RegexBoyerMoore.cs
- SqlDeflator.cs
- TrustManagerPromptUI.cs
- ChangePassword.cs
- XmlSerializerFormatAttribute.cs
- WindowsSlider.cs
- RectKeyFrameCollection.cs
- PeerInputChannelListener.cs
- PagePropertiesChangingEventArgs.cs
- WpfPayload.cs
- SQLRoleProvider.cs
- ContextBase.cs
- TableItemProviderWrapper.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- TextEditorLists.cs
- XmlRootAttribute.cs
- DataGridViewRowConverter.cs
- compensatingcollection.cs
- RoleServiceManager.cs
- FontStretches.cs
- RequestTimeoutManager.cs