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
- DocComment.cs
- FrameworkContextData.cs
- StreamReader.cs
- ComAdminWrapper.cs
- AnnotationHelper.cs
- ParameterToken.cs
- PageClientProxyGenerator.cs
- InstalledVoice.cs
- HtmlTableCellCollection.cs
- PolicyStatement.cs
- Table.cs
- WorkflowQueuingService.cs
- CodeTypeOfExpression.cs
- FileAuthorizationModule.cs
- CodeTryCatchFinallyStatement.cs
- TextTabProperties.cs
- TraceContext.cs
- xmlfixedPageInfo.cs
- DataTrigger.cs
- SessionMode.cs
- MulticastNotSupportedException.cs
- CodeGenerator.cs
- Freezable.cs
- CustomValidator.cs
- InsufficientExecutionStackException.cs
- RightsManagementEncryptedStream.cs
- KerberosReceiverSecurityToken.cs
- OracleRowUpdatedEventArgs.cs
- Condition.cs
- SmiSettersStream.cs
- XmlObjectSerializer.cs
- HostedBindingBehavior.cs
- SourceInterpreter.cs
- ToolStripTextBox.cs
- ConnectionProviderAttribute.cs
- WebMessageBodyStyleHelper.cs
- SubMenuStyleCollection.cs
- ConsoleCancelEventArgs.cs
- StructuredProperty.cs
- HttpResponseHeader.cs
- XmlQueryStaticData.cs
- WinCategoryAttribute.cs
- TemplateAction.cs
- WebPartManagerDesigner.cs
- Sorting.cs
- PathFigureCollectionConverter.cs
- ZipFileInfo.cs
- LocalClientSecuritySettingsElement.cs
- TrackingExtract.cs
- ForwardPositionQuery.cs
- WindowsListViewItemStartMenu.cs
- Constraint.cs
- BindStream.cs
- ObjectDataSourceFilteringEventArgs.cs
- CommandHelpers.cs
- ThemeInfoAttribute.cs
- NetPipeSectionData.cs
- URL.cs
- _IPv4Address.cs
- ListViewTableRow.cs
- Hashtable.cs
- SelectionItemPattern.cs
- CodeMemberEvent.cs
- Utility.cs
- NativeMethods.cs
- MachineKeyValidationConverter.cs
- CompatibleIComparer.cs
- Utils.cs
- PropertyConverter.cs
- PaperSize.cs
- TextServicesCompartmentEventSink.cs
- DbDataRecord.cs
- UnsafeNativeMethods.cs
- ConditionalAttribute.cs
- SqlError.cs
- WebEventTraceProvider.cs
- FirstQueryOperator.cs
- BulletedListEventArgs.cs
- XmlSchemaAny.cs
- IntSecurity.cs
- Profiler.cs
- MasterPageBuildProvider.cs
- TabControlCancelEvent.cs
- LayoutTableCell.cs
- WebMessageFormatHelper.cs
- SerialPort.cs
- FacetValueContainer.cs
- EntityWithChangeTrackerStrategy.cs
- DefaultPropertyAttribute.cs
- DataGridViewRowsRemovedEventArgs.cs
- DataObject.cs
- TableLayoutRowStyleCollection.cs
- precedingquery.cs
- Method.cs
- ClientBuildManager.cs
- EnterpriseServicesHelper.cs
- RuntimeHelpers.cs
- StorageEndPropertyMapping.cs
- XslCompiledTransform.cs
- StreamReader.cs