Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataWeb / Client / System / Data / Services / Client / DataServiceResponse.cs / 1305376 / 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 (EqualityComparer .Default); 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 (EqualityComparer .Default); 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
- SerialPort.cs
- DragAssistanceManager.cs
- PrePostDescendentsWalker.cs
- WebConfigurationFileMap.cs
- webeventbuffer.cs
- DataContractSerializerServiceBehavior.cs
- TextAction.cs
- EntityProxyTypeInfo.cs
- Visual3DCollection.cs
- ProfilePropertyMetadata.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- TemplatedMailWebEventProvider.cs
- StateDesigner.Layouts.cs
- GeneralTransformGroup.cs
- SiteMap.cs
- PrivateFontCollection.cs
- ResourcePool.cs
- PropertyValueEditor.cs
- JoinTreeSlot.cs
- PngBitmapEncoder.cs
- QilFunction.cs
- ProviderIncompatibleException.cs
- XmlnsCache.cs
- WindowsRebar.cs
- BodyGlyph.cs
- ObjectPersistData.cs
- InternalDispatchObject.cs
- ipaddressinformationcollection.cs
- BindingElementCollection.cs
- FormatSettings.cs
- NavigationPropertyEmitter.cs
- RowType.cs
- Line.cs
- ColumnWidthChangedEvent.cs
- DirectionalLight.cs
- BCLDebug.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- RandomDelayQueuedSendsAsyncResult.cs
- ArrowControl.xaml.cs
- SQLUtility.cs
- CopyEncoder.cs
- XmlSchemaSet.cs
- OutputCacheSettings.cs
- ObservableCollection.cs
- Size3D.cs
- PointHitTestParameters.cs
- EventWaitHandle.cs
- InfoCardRSACryptoProvider.cs
- DataPagerField.cs
- ResXResourceSet.cs
- SimpleApplicationHost.cs
- UdpChannelListener.cs
- SystemInfo.cs
- RelationshipEndMember.cs
- LocalFileSettingsProvider.cs
- ClientUtils.cs
- SecurityKeyIdentifier.cs
- SecUtil.cs
- SecurityListenerSettingsLifetimeManager.cs
- TextModifierScope.cs
- KeyTimeConverter.cs
- PolyQuadraticBezierSegment.cs
- DataTableReaderListener.cs
- CollectionChangeEventArgs.cs
- DataFieldEditor.cs
- MessageBox.cs
- EventRecord.cs
- SwitchCase.cs
- AutoResetEvent.cs
- RegistryPermission.cs
- TemplateBaseAction.cs
- WebPartZoneDesigner.cs
- CookieParameter.cs
- SinglePageViewer.cs
- QilIterator.cs
- DrawingCollection.cs
- Section.cs
- DropSource.cs
- StyleHelper.cs
- XPathConvert.cs
- SQLMoneyStorage.cs
- Choices.cs
- BaseServiceProvider.cs
- WebControlToolBoxItem.cs
- EmissiveMaterial.cs
- PeerNameResolver.cs
- SoundPlayer.cs
- VirtualizingPanel.cs
- DocumentViewerHelper.cs
- FixedSOMTable.cs
- ValueProviderWrapper.cs
- FontInfo.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- DynamicResourceExtensionConverter.cs
- ActivityCodeDomSerializationManager.cs
- PkcsUtils.cs
- PersistChildrenAttribute.cs
- ObjectIDGenerator.cs
- ByteAnimation.cs
- QilGenerator.cs