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 Dictionaryheaders; /// Http status code of the response. private int statusCode; ///responses private IEnumerableresponse; /// 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(Dictionaryheaders, 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 IDictionaryBatchHeaders { 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 IEnumeratorGetEnumerator() { 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 Dictionaryheaders; /// Http status code of the response. private int statusCode; ///responses private IEnumerableresponse; /// 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(Dictionaryheaders, 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 IDictionaryBatchHeaders { 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 IEnumeratorGetEnumerator() { 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
- ClientSettings.cs
- DecoderFallback.cs
- sqlcontext.cs
- XmlSiteMapProvider.cs
- ProfessionalColors.cs
- InkCanvasSelectionAdorner.cs
- DatagridviewDisplayedBandsData.cs
- SyndicationPerson.cs
- ProfilePropertySettings.cs
- XPathNavigatorKeyComparer.cs
- TextDpi.cs
- EntityStoreSchemaGenerator.cs
- ClientBuildManager.cs
- BooleanProjectedSlot.cs
- AsmxEndpointPickerExtension.cs
- XamlPointCollectionSerializer.cs
- DesignerSerializationOptionsAttribute.cs
- safesecurityhelperavalon.cs
- PlainXmlDeserializer.cs
- Crc32.cs
- XamlToRtfParser.cs
- basenumberconverter.cs
- glyphs.cs
- Hashtable.cs
- ClickablePoint.cs
- Keywords.cs
- updatecommandorderer.cs
- RegisteredHiddenField.cs
- ReferencedCollectionType.cs
- ActivationArguments.cs
- RijndaelCryptoServiceProvider.cs
- SqlWebEventProvider.cs
- VisualBrush.cs
- SqlErrorCollection.cs
- ClosableStream.cs
- EndpointAddressAugust2004.cs
- DataControlFieldHeaderCell.cs
- RadialGradientBrush.cs
- EntityRecordInfo.cs
- safePerfProviderHandle.cs
- ContextDataSourceContextData.cs
- MemberDomainMap.cs
- ConfigurationSection.cs
- ConfigurationLocation.cs
- NeedSkipTokenVisitor.cs
- Rect.cs
- HttpResponseMessageProperty.cs
- MasterPage.cs
- Quaternion.cs
- HtmlContainerControl.cs
- NodeFunctions.cs
- ScrollEventArgs.cs
- ProtocolsInstallComponent.cs
- DriveNotFoundException.cs
- FixedPageAutomationPeer.cs
- ToolStripDropDownMenu.cs
- WorkflowOperationErrorHandler.cs
- RowBinding.cs
- CommonRemoteMemoryBlock.cs
- AccessDataSourceView.cs
- ClientApiGenerator.cs
- Selection.cs
- HtmlTable.cs
- ServiceHostingEnvironmentSection.cs
- SafeArrayTypeMismatchException.cs
- TextTreeInsertElementUndoUnit.cs
- Control.cs
- TraceHandlerErrorFormatter.cs
- OleDbStruct.cs
- XpsS0ValidatingLoader.cs
- StreamReader.cs
- BrowserCapabilitiesFactory.cs
- TextFormatter.cs
- ConsoleKeyInfo.cs
- ReadOnlyHierarchicalDataSourceView.cs
- TypeReference.cs
- SubMenuStyle.cs
- WebConfigurationFileMap.cs
- DesignTimeVisibleAttribute.cs
- ReversePositionQuery.cs
- DataGridViewRowPrePaintEventArgs.cs
- CompiledQuery.cs
- ResourceManager.cs
- Lease.cs
- StrokeNodeOperations.cs
- SpellCheck.cs
- UserControlFileEditor.cs
- DropShadowBitmapEffect.cs
- DataSpaceManager.cs
- TextFormatterContext.cs
- DetailsViewInsertedEventArgs.cs
- HwndSource.cs
- DataObjectSettingDataEventArgs.cs
- MSAANativeProvider.cs
- ApplicationContext.cs
- HealthMonitoringSectionHelper.cs
- VectorCollection.cs
- BinaryReader.cs
- PageTheme.cs
- XmlElementAttributes.cs