Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- OleDbConnection.cs
- CustomAttribute.cs
- SchemaReference.cs
- DependencyPropertyValueSerializer.cs
- PropertyGridDesigner.cs
- CacheRequest.cs
- SqlServer2KCompatibilityCheck.cs
- TraceListeners.cs
- TransformProviderWrapper.cs
- DetailsViewCommandEventArgs.cs
- QuotedPairReader.cs
- Atom10FeedFormatter.cs
- ListSurrogate.cs
- SineEase.cs
- XmlKeywords.cs
- LexicalChunk.cs
- sqlser.cs
- AutomationPeer.cs
- XmlUTF8TextWriter.cs
- BaseCodeDomTreeGenerator.cs
- HostingEnvironmentSection.cs
- FixedTextSelectionProcessor.cs
- FunctionDescription.cs
- ClrProviderManifest.cs
- MemberRelationshipService.cs
- WebPartsSection.cs
- ACE.cs
- WorkflowLayouts.cs
- ASCIIEncoding.cs
- WindowsTokenRoleProvider.cs
- ScriptingProfileServiceSection.cs
- Hash.cs
- OperationCanceledException.cs
- SoapHeaderAttribute.cs
- ObfuscateAssemblyAttribute.cs
- SystemColors.cs
- NamedPipeTransportElement.cs
- CreateUserWizardStep.cs
- WinEventWrap.cs
- IPipelineRuntime.cs
- OleDbMetaDataFactory.cs
- RequestStatusBarUpdateEventArgs.cs
- HttpCapabilitiesSectionHandler.cs
- RenderingBiasValidation.cs
- XmlSchemaDatatype.cs
- SendMessageRecord.cs
- HttpCacheParams.cs
- StreamReader.cs
- ExceptionUtil.cs
- DBSqlParserTable.cs
- SQLResource.cs
- IndexedWhereQueryOperator.cs
- EntityContainerEmitter.cs
- ControlDesignerState.cs
- Triangle.cs
- RoutedPropertyChangedEventArgs.cs
- XhtmlBasicTextViewAdapter.cs
- Rect3D.cs
- FreezableDefaultValueFactory.cs
- Activity.cs
- BuilderPropertyEntry.cs
- LinkButton.cs
- OdbcConnection.cs
- ManualResetEvent.cs
- GridSplitter.cs
- CancellationHandlerDesigner.cs
- DSACryptoServiceProvider.cs
- RegistryKey.cs
- EventDescriptor.cs
- CustomValidator.cs
- EntityContainer.cs
- MailAddressCollection.cs
- DataGridViewEditingControlShowingEventArgs.cs
- AnnotationAdorner.cs
- PrimarySelectionGlyph.cs
- RangeValueProviderWrapper.cs
- SqlConnectionStringBuilder.cs
- MatrixKeyFrameCollection.cs
- ExpressionBuilder.cs
- Floater.cs
- FileEnumerator.cs
- ManagementDateTime.cs
- _ConnectStream.cs
- Image.cs
- WindowsBrush.cs
- ComEventsSink.cs
- TextTreeText.cs
- DependencyPropertyChangedEventArgs.cs
- NumericPagerField.cs
- XPathChildIterator.cs
- BuildProvider.cs
- RectAnimationClockResource.cs
- PolyQuadraticBezierSegment.cs
- MetadataArtifactLoader.cs
- PersonalizationProvider.cs
- ObjectManager.cs
- KeyGestureConverter.cs
- ConcatQueryOperator.cs
- GreenMethods.cs
- ReflectPropertyDescriptor.cs