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
- BitmapEffectDrawing.cs
- DrawingCollection.cs
- OleStrCAMarshaler.cs
- SafeFileMappingHandle.cs
- EncodingInfo.cs
- XPathNavigatorKeyComparer.cs
- GeometryCombineModeValidation.cs
- Directory.cs
- ParserContext.cs
- SharedPerformanceCounter.cs
- RayHitTestParameters.cs
- TreeView.cs
- SoapFormatterSinks.cs
- XmlEncoding.cs
- DrawListViewColumnHeaderEventArgs.cs
- MulticastNotSupportedException.cs
- WindowsFormsSectionHandler.cs
- ConnectionStringsExpressionBuilder.cs
- TextBox.cs
- EmptyStringExpandableObjectConverter.cs
- WindowsTooltip.cs
- DynamicPropertyHolder.cs
- ContentIterators.cs
- RowSpanVector.cs
- AnnotationResource.cs
- SmtpException.cs
- ExceptionAggregator.cs
- PaintValueEventArgs.cs
- RepeatButtonAutomationPeer.cs
- Screen.cs
- SystemWebCachingSectionGroup.cs
- TextEditorParagraphs.cs
- coordinatorfactory.cs
- TrackingMemoryStream.cs
- AssemblyNameProxy.cs
- InterleavedZipPartStream.cs
- FontStretchConverter.cs
- CharAnimationUsingKeyFrames.cs
- CompositeClientFormatter.cs
- BitmapEffectDrawing.cs
- ExpressionBuilder.cs
- EnumerableValidator.cs
- TabPage.cs
- FormViewModeEventArgs.cs
- SafeArrayTypeMismatchException.cs
- TreeViewImageKeyConverter.cs
- GroupBox.cs
- ValidateNames.cs
- BaseTemplateParser.cs
- PrimitiveXmlSerializers.cs
- TextTreeObjectNode.cs
- CommandField.cs
- MarkupCompilePass1.cs
- NameValueSectionHandler.cs
- DragDrop.cs
- ProgressChangedEventArgs.cs
- InstanceNormalEvent.cs
- Evidence.cs
- XComponentModel.cs
- PointAnimation.cs
- SerializationHelper.cs
- IndentedWriter.cs
- ClockController.cs
- CalendarAutoFormat.cs
- GregorianCalendar.cs
- MergeLocalizationDirectives.cs
- EdmSchemaError.cs
- TrustManager.cs
- StylusCollection.cs
- TypeDescriptionProviderAttribute.cs
- XmlNamespaceMapping.cs
- StylusPointPropertyInfo.cs
- Int16AnimationBase.cs
- DataBoundControl.cs
- CurrencyWrapper.cs
- DynamicRenderer.cs
- ExpressionEditorAttribute.cs
- GridItem.cs
- ResXResourceReader.cs
- Operator.cs
- InheritanceRules.cs
- codemethodreferenceexpression.cs
- TableLayoutRowStyleCollection.cs
- ListBase.cs
- TypeForwardedToAttribute.cs
- DataGridPageChangedEventArgs.cs
- XmlWriter.cs
- PolyQuadraticBezierSegmentFigureLogic.cs
- DataKeyCollection.cs
- InstallerTypeAttribute.cs
- X509ChainElement.cs
- ByteStorage.cs
- HashSetEqualityComparer.cs
- XmlSchemaObject.cs
- StringCollection.cs
- BindingMAnagerBase.cs
- PageAsyncTaskManager.cs
- VisualTreeUtils.cs
- NameScopePropertyAttribute.cs
- storepermission.cs