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
- TextEffect.cs
- InputElement.cs
- WorkflowQueue.cs
- GeneralTransform3D.cs
- PackagePart.cs
- ToolStripContentPanel.cs
- ConfigurationException.cs
- SizeAnimationBase.cs
- ConcurrentQueue.cs
- CompositeDataBoundControl.cs
- CertificateManager.cs
- DebugInfoGenerator.cs
- TypeLibConverter.cs
- Grid.cs
- HttpModulesSection.cs
- DataGridViewSelectedCellCollection.cs
- DataGridPagerStyle.cs
- Label.cs
- Validator.cs
- ObjectDataSourceView.cs
- DataSourceHelper.cs
- TokenBasedSetEnumerator.cs
- EncoderReplacementFallback.cs
- DataServicePagingProviderWrapper.cs
- DefinitionBase.cs
- TabItemAutomationPeer.cs
- AttributeTableBuilder.cs
- ComplexObject.cs
- CatalogPart.cs
- HostingEnvironmentException.cs
- PreProcessor.cs
- ObjectStateManager.cs
- StateMachineWorkflow.cs
- Config.cs
- dbenumerator.cs
- BorderGapMaskConverter.cs
- TypeDependencyAttribute.cs
- HitTestDrawingContextWalker.cs
- InputBindingCollection.cs
- DSASignatureDeformatter.cs
- DCSafeHandle.cs
- XmlTextReader.cs
- SettingsSection.cs
- XmlDocumentSerializer.cs
- SqlUtil.cs
- AdRotatorDesigner.cs
- Command.cs
- X509CertificateCollection.cs
- UriExt.cs
- TypeUnloadedException.cs
- SqlMethodAttribute.cs
- DataList.cs
- NameValuePermission.cs
- TextServicesCompartment.cs
- HelpProvider.cs
- RootCodeDomSerializer.cs
- DataColumnMappingCollection.cs
- RunWorkerCompletedEventArgs.cs
- ActivitySurrogate.cs
- _SslSessionsCache.cs
- CodeRemoveEventStatement.cs
- ScriptComponentDescriptor.cs
- XmlSchemaComplexContentExtension.cs
- BitmapEffectState.cs
- TextControl.cs
- GlobalizationAssembly.cs
- EventWaitHandleSecurity.cs
- _ListenerRequestStream.cs
- _NestedSingleAsyncResult.cs
- MenuScrollingVisibilityConverter.cs
- RouteData.cs
- AssociationType.cs
- EntitySqlQueryCacheKey.cs
- SmiEventStream.cs
- ModuleBuilderData.cs
- ConstructorArgumentAttribute.cs
- OrderingExpression.cs
- TextSelectionHelper.cs
- LinqDataSourceDisposeEventArgs.cs
- UInt16Converter.cs
- OleDbDataReader.cs
- CapabilitiesState.cs
- ActivationArguments.cs
- MultipleViewProviderWrapper.cs
- MutexSecurity.cs
- ChannelOptions.cs
- MembershipPasswordException.cs
- OpCodes.cs
- DataGridViewCellPaintingEventArgs.cs
- BindStream.cs
- ParserStreamGeometryContext.cs
- ClonableStack.cs
- ImageKeyConverter.cs
- StaticSiteMapProvider.cs
- BitmapEffect.cs
- SafeNativeMethods.cs
- HtmlControlPersistable.cs
- Guid.cs
- TraceListeners.cs
- FieldAccessException.cs