Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / ndp / fx / src / DataWeb / Client / System / Data / Services / Client / DataServiceResponse.cs / 3 / 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
- AuditLog.cs
- ValidationError.cs
- KeyValuePair.cs
- GestureRecognitionResult.cs
- File.cs
- ExpressionHelper.cs
- SmtpAuthenticationManager.cs
- SafeLocalMemHandle.cs
- EndpointReference.cs
- InstallerTypeAttribute.cs
- OutputCacheSettings.cs
- BlurEffect.cs
- ChangePassword.cs
- CombinedGeometry.cs
- VariableQuery.cs
- IERequestCache.cs
- TextSpan.cs
- SignatureToken.cs
- SqlRecordBuffer.cs
- ManagementOperationWatcher.cs
- InstalledFontCollection.cs
- GeneralTransform3DCollection.cs
- TreeViewDataItemAutomationPeer.cs
- MsmqQueue.cs
- RawStylusInput.cs
- LiteralSubsegment.cs
- SerializerDescriptor.cs
- BindingSourceDesigner.cs
- RepeatInfo.cs
- XmlResolver.cs
- DispatcherBuilder.cs
- SignatureToken.cs
- MultiBindingExpression.cs
- XmlFormatExtensionPrefixAttribute.cs
- HorizontalAlignConverter.cs
- HttpModuleCollection.cs
- BufferedWebEventProvider.cs
- WindowsEditBox.cs
- PriorityQueue.cs
- XmlDocumentFragment.cs
- PLINQETWProvider.cs
- TypeBuilderInstantiation.cs
- TaskDesigner.cs
- CompensationParticipant.cs
- TypeDependencyAttribute.cs
- SeekableReadStream.cs
- NotSupportedException.cs
- selecteditemcollection.cs
- CompareInfo.cs
- BehaviorEditorPart.cs
- SqlTransaction.cs
- PointAnimationUsingKeyFrames.cs
- BitmapSizeOptions.cs
- ConvertersCollection.cs
- SuppressMessageAttribute.cs
- GeneralTransform3DTo2DTo3D.cs
- JsonStringDataContract.cs
- FixedTextView.cs
- OrthographicCamera.cs
- XXXInfos.cs
- DocumentCollection.cs
- SemanticBasicElement.cs
- LicenseProviderAttribute.cs
- PerformanceCounter.cs
- TrackingWorkflowEventArgs.cs
- ObjectCloneHelper.cs
- CompilerErrorCollection.cs
- X500Name.cs
- RegexInterpreter.cs
- NonSerializedAttribute.cs
- JapaneseCalendar.cs
- XmlLoader.cs
- TraceLevelStore.cs
- XmlNodeList.cs
- StateInitialization.cs
- XMLUtil.cs
- HtmlShimManager.cs
- SchemaImporterExtensionElementCollection.cs
- RangeValidator.cs
- CalculatedColumn.cs
- FixedBufferAttribute.cs
- SecurityTokenAuthenticator.cs
- MediaContext.cs
- WinFormsComponentEditor.cs
- AssemblyCache.cs
- DataStreams.cs
- DocumentApplicationJournalEntry.cs
- TextEndOfLine.cs
- SizeLimitedCache.cs
- SamlAssertion.cs
- LicFileLicenseProvider.cs
- ToolboxItemAttribute.cs
- XmlSerializerOperationBehavior.cs
- UnsafeNativeMethods.cs
- SecurityPolicyVersion.cs
- DataView.cs
- UInt16Converter.cs
- CompareValidator.cs
- login.cs
- EntityCommand.cs