Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- StrongNameMembershipCondition.cs
- SQLString.cs
- DataGridViewControlCollection.cs
- BrowserInteropHelper.cs
- ItemsPanelTemplate.cs
- COSERVERINFO.cs
- COM2Properties.cs
- ScrollProperties.cs
- IMembershipProvider.cs
- XmlReaderSettings.cs
- ValueHandle.cs
- ListSortDescriptionCollection.cs
- RtfToken.cs
- WebSysDescriptionAttribute.cs
- basecomparevalidator.cs
- DoubleStorage.cs
- ActivityXRefConverter.cs
- SimpleHandlerBuildProvider.cs
- SecurityTokenValidationException.cs
- NetTcpSecurityElement.cs
- PrintingPermissionAttribute.cs
- HttpCachePolicyBase.cs
- WorkflowElementDialogWindow.xaml.cs
- DataGridTable.cs
- TextUtf8RawTextWriter.cs
- Setter.cs
- XmlValueConverter.cs
- SessionStateContainer.cs
- HandlerFactoryWrapper.cs
- DynamicActionMessageFilter.cs
- LocalBuilder.cs
- ProfileParameter.cs
- SplineKeyFrames.cs
- ReferenceTypeElement.cs
- LinqDataView.cs
- WmlImageAdapter.cs
- EntityConnectionStringBuilderItem.cs
- NonBatchDirectoryCompiler.cs
- TextServicesHost.cs
- Literal.cs
- TreeNodeEventArgs.cs
- ReturnEventArgs.cs
- GridViewRowCollection.cs
- HtmlButton.cs
- ConnectionStringSettings.cs
- FixedSchema.cs
- DLinqAssociationProvider.cs
- SqlNotificationEventArgs.cs
- Win32PrintDialog.cs
- SubtreeProcessor.cs
- Comparer.cs
- CfgArc.cs
- UnknownMessageReceivedEventArgs.cs
- BindingExpressionBase.cs
- ContractInferenceHelper.cs
- EmptyControlCollection.cs
- FixedPosition.cs
- OdbcEnvironmentHandle.cs
- CatalogPartChrome.cs
- SimpleWebHandlerParser.cs
- TextFindEngine.cs
- XmlSchemaSubstitutionGroup.cs
- ToolStripDropDownItem.cs
- ObjectCloneHelper.cs
- CopyOnWriteList.cs
- BaseProcessor.cs
- EmptyImpersonationContext.cs
- GuidConverter.cs
- HttpApplicationFactory.cs
- PositiveTimeSpanValidatorAttribute.cs
- LinqDataSourceView.cs
- ActivityDesigner.cs
- ListMarkerSourceInfo.cs
- RedistVersionInfo.cs
- TypeDelegator.cs
- DLinqAssociationProvider.cs
- EditorPartChrome.cs
- HttpProcessUtility.cs
- ComPlusInstanceProvider.cs
- LineInfo.cs
- FactoryMaker.cs
- MeasurementDCInfo.cs
- ModuleConfigurationInfo.cs
- XhtmlBasicLiteralTextAdapter.cs
- BlockUIContainer.cs
- DataGridViewCellEventArgs.cs
- URI.cs
- COM2ExtendedBrowsingHandler.cs
- RSACryptoServiceProvider.cs
- Int32Rect.cs
- xmlglyphRunInfo.cs
- LineGeometry.cs
- ZipIOBlockManager.cs
- WindowsHyperlink.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- HandledMouseEvent.cs
- PropertyChangedEventArgs.cs
- CriticalFinalizerObject.cs
- PasswordPropertyTextAttribute.cs
- WebBrowserDocumentCompletedEventHandler.cs