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
- DesignTimeData.cs
- RegularExpressionValidator.cs
- ParserStreamGeometryContext.cs
- FormParameter.cs
- SerializableAttribute.cs
- LoadGrammarCompletedEventArgs.cs
- XmlFormatExtensionPointAttribute.cs
- HotSpotCollection.cs
- QueryContext.cs
- TaskSchedulerException.cs
- DefaultPrintController.cs
- TextSimpleMarkerProperties.cs
- CodeMemberEvent.cs
- SourceLineInfo.cs
- PlaceHolder.cs
- input.cs
- ToolStripPanelRenderEventArgs.cs
- SimpleBitVector32.cs
- IntranetCredentialPolicy.cs
- Array.cs
- XmlSchemaExternal.cs
- ScriptResourceHandler.cs
- EasingKeyFrames.cs
- SystemWebSectionGroup.cs
- returneventsaver.cs
- TransactionScope.cs
- TypefaceMetricsCache.cs
- NamespaceDisplay.xaml.cs
- TreeNodeBindingDepthConverter.cs
- XmlSerializableWriter.cs
- PageCatalogPart.cs
- MethodCallConverter.cs
- _DigestClient.cs
- NamespaceTable.cs
- RoleManagerSection.cs
- FormViewInsertedEventArgs.cs
- Metafile.cs
- BuilderInfo.cs
- WorkflowInstanceExtensionCollection.cs
- TargetControlTypeCache.cs
- SerializationFieldInfo.cs
- InputGestureCollection.cs
- EditorAttributeInfo.cs
- InternalRelationshipCollection.cs
- PackageDigitalSignature.cs
- EventHandlerList.cs
- ConnectionConsumerAttribute.cs
- URLAttribute.cs
- EmptyStringExpandableObjectConverter.cs
- ToolStripItem.cs
- XmlAtomicValue.cs
- XPathDocumentIterator.cs
- ListItem.cs
- ColumnHeader.cs
- GlyphRun.cs
- GraphicsPathIterator.cs
- BStrWrapper.cs
- Visual.cs
- PopOutPanel.cs
- PageAsyncTask.cs
- SchemaCollectionPreprocessor.cs
- thaishape.cs
- IdleTimeoutMonitor.cs
- SchemaImporter.cs
- Span.cs
- MemberNameValidator.cs
- Tag.cs
- documentsequencetextview.cs
- FontNamesConverter.cs
- DownloadProgressEventArgs.cs
- MachineKeyConverter.cs
- ErrorTableItemStyle.cs
- ModifyActivitiesPropertyDescriptor.cs
- DesignBindingConverter.cs
- ProfileBuildProvider.cs
- MemberRelationshipService.cs
- CuspData.cs
- ListViewDeleteEventArgs.cs
- FontDifferentiator.cs
- XPathPatternBuilder.cs
- precedingquery.cs
- TextServicesCompartmentEventSink.cs
- ProviderIncompatibleException.cs
- MissingManifestResourceException.cs
- DbParameterCollection.cs
- MsmqIntegrationSecurityElement.cs
- Tile.cs
- UrlMappingsModule.cs
- ResXResourceReader.cs
- KeyConverter.cs
- Misc.cs
- DataError.cs
- StylusLogic.cs
- FixedFindEngine.cs
- SettingsAttributeDictionary.cs
- InternalSafeNativeMethods.cs
- ServiceModelEnumValidatorAttribute.cs
- AggregateNode.cs
- SchemaMapping.cs
- DesignerInterfaces.cs