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
- Visual3D.cs
- SoapCodeExporter.cs
- HttpCacheVaryByContentEncodings.cs
- QueryCacheManager.cs
- Int16KeyFrameCollection.cs
- HealthMonitoringSectionHelper.cs
- MatrixTransform.cs
- RsaSecurityTokenAuthenticator.cs
- UnsafeNativeMethods.cs
- DeferredTextReference.cs
- XmlSchemaGroup.cs
- RangeContentEnumerator.cs
- TabControlAutomationPeer.cs
- GeneralTransform3DTo2D.cs
- CharacterMetricsDictionary.cs
- XpsFixedDocumentSequenceReaderWriter.cs
- OdbcDataReader.cs
- DbUpdateCommandTree.cs
- MaskedTextProvider.cs
- addressfiltermode.cs
- EllipticalNodeOperations.cs
- MetadataArtifactLoaderFile.cs
- InheritablePropertyChangeInfo.cs
- ImportContext.cs
- ResourceSetExpression.cs
- RangeValueProviderWrapper.cs
- ConnectionConsumerAttribute.cs
- RelationshipConverter.cs
- SocketStream.cs
- HebrewCalendar.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- ReflectionServiceProvider.cs
- DataServiceConfiguration.cs
- XmlWrappingReader.cs
- BufferedWebEventProvider.cs
- ReflectionTypeLoadException.cs
- VScrollBar.cs
- PnrpPermission.cs
- CodeIndexerExpression.cs
- GlyphRunDrawing.cs
- EventLogQuery.cs
- SafeUserTokenHandle.cs
- TaskHelper.cs
- WebPartsSection.cs
- SoapFault.cs
- RijndaelManagedTransform.cs
- EntityCommandCompilationException.cs
- ChannelServices.cs
- ProfileGroupSettingsCollection.cs
- VisualBrush.cs
- ReflectionUtil.cs
- WinCategoryAttribute.cs
- BaseCollection.cs
- ContextBase.cs
- CodeDomDecompiler.cs
- Int64AnimationBase.cs
- FunctionDetailsReader.cs
- TextRunCacheImp.cs
- HtmlInputImage.cs
- ThumbButtonInfoCollection.cs
- ImpersonationContext.cs
- XMLDiffLoader.cs
- SafeNativeMethods.cs
- DocComment.cs
- WrappedIUnknown.cs
- XamlReader.cs
- loginstatus.cs
- ErrorFormatter.cs
- DateTimeValueSerializer.cs
- StorageAssociationSetMapping.cs
- Annotation.cs
- SymmetricKeyWrap.cs
- HtmlElementErrorEventArgs.cs
- SourceChangedEventArgs.cs
- WindowsContainer.cs
- LinqDataSource.cs
- XmlParser.cs
- EmbeddedObject.cs
- DataSourceXmlSubItemAttribute.cs
- __ComObject.cs
- PointValueSerializer.cs
- ReflectionTypeLoadException.cs
- DESCryptoServiceProvider.cs
- LoginView.cs
- Model3D.cs
- WorkflowTimerService.cs
- PresentationSource.cs
- Model3DGroup.cs
- ImageSourceValueSerializer.cs
- MbpInfo.cs
- Thickness.cs
- DelegateSerializationHolder.cs
- IListConverters.cs
- SoapInteropTypes.cs
- GroupItemAutomationPeer.cs
- DataSourceControlBuilder.cs
- SplitContainer.cs
- SEHException.cs
- LoginName.cs
- InternalDuplexChannelListener.cs