Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / ndp / fx / src / DataWeb / Client / System / Data / Services / Client / OperationResponse.cs / 3 / OperationResponse.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // //// Operation response base class // //--------------------------------------------------------------------- namespace System.Data.Services.Client { using System; using System.Collections.Generic; using System.Diagnostics; ///Operation response base class [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 abstract class OperationResponse { ///Http headers of the response. private Dictionaryheaders; /// Http status code of the response. private int statusCode; ///exception to throw during get results private Exception innerException; ////// constructor /// /// HTTP headers internal OperationResponse(Dictionaryheaders) { Debug.Assert(null != headers, "null headers"); this.headers = headers; } /// Http headers of the response. public IDictionaryHeaders { get { return this.headers; } } /// Http status code of the response. public int StatusCode { get { return this.statusCode; } internal set { this.statusCode = value; } } ///Get and set the exception object if this response had a failure public Exception Error { get { return this.innerException; } set { Debug.Assert(null != value, "should not set null"); this.innerException = value; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // //// Operation response base class // //--------------------------------------------------------------------- namespace System.Data.Services.Client { using System; using System.Collections.Generic; using System.Diagnostics; ///Operation response base class [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 abstract class OperationResponse { ///Http headers of the response. private Dictionaryheaders; /// Http status code of the response. private int statusCode; ///exception to throw during get results private Exception innerException; ////// constructor /// /// HTTP headers internal OperationResponse(Dictionaryheaders) { Debug.Assert(null != headers, "null headers"); this.headers = headers; } /// Http headers of the response. public IDictionaryHeaders { get { return this.headers; } } /// Http status code of the response. public int StatusCode { get { return this.statusCode; } internal set { this.statusCode = value; } } ///Get and set the exception object if this response had a failure public Exception Error { get { return this.innerException; } set { Debug.Assert(null != value, "should not set null"); this.innerException = value; } } } } // 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
- SkewTransform.cs
- SqlBooleanMismatchVisitor.cs
- UnsafeNativeMethodsTablet.cs
- ChainOfResponsibility.cs
- ScriptReference.cs
- GridViewPageEventArgs.cs
- BitmapEffectGeneralTransform.cs
- ExpressionVisitorHelpers.cs
- SqlInfoMessageEvent.cs
- Perspective.cs
- NoPersistScope.cs
- TextDataBindingHandler.cs
- PropertiesTab.cs
- TagPrefixCollection.cs
- ICspAsymmetricAlgorithm.cs
- PhysicalFontFamily.cs
- EventSinkHelperWriter.cs
- Helpers.cs
- NamedPermissionSet.cs
- VisualState.cs
- TaskDesigner.cs
- ConfigurationStrings.cs
- PolicyManager.cs
- TemplatedWizardStep.cs
- ScriptManagerProxy.cs
- ParallelTimeline.cs
- ObjectDataSourceView.cs
- Matrix.cs
- EntityDesignerUtils.cs
- TdsParserHelperClasses.cs
- SettingsProviderCollection.cs
- ItemDragEvent.cs
- PropertyConverter.cs
- InstalledFontCollection.cs
- WindowsTreeView.cs
- XmlQuerySequence.cs
- RequestCachePolicyConverter.cs
- Enlistment.cs
- StringUtil.cs
- BinHexDecoder.cs
- XmlDataSourceNodeDescriptor.cs
- EntityDataSource.cs
- NamedElement.cs
- BuildManagerHost.cs
- List.cs
- TypeGeneratedEventArgs.cs
- DBConcurrencyException.cs
- HitTestWithPointDrawingContextWalker.cs
- AutomationPropertyInfo.cs
- AffineTransform3D.cs
- ToolStripPanelRenderEventArgs.cs
- SecurityResources.cs
- WizardPanel.cs
- SqlRecordBuffer.cs
- UInt32Converter.cs
- Trigger.cs
- EncryptedPackage.cs
- ServiceNameElement.cs
- ExpressionBuilderContext.cs
- SourceChangedEventArgs.cs
- VarRefManager.cs
- TableDetailsCollection.cs
- ComponentDesigner.cs
- ToolStripMenuItem.cs
- XmlAttributeHolder.cs
- XmlToDatasetMap.cs
- CollectionChangeEventArgs.cs
- ChannelManager.cs
- AppLevelCompilationSectionCache.cs
- FrameworkTemplate.cs
- DeclarativeConditionsCollection.cs
- BinaryWriter.cs
- AvTraceDetails.cs
- basemetadatamappingvisitor.cs
- TablePattern.cs
- UnhandledExceptionEventArgs.cs
- Exception.cs
- unsafenativemethodstextservices.cs
- PTUtility.cs
- basenumberconverter.cs
- CollectionChangeEventArgs.cs
- EdmTypeAttribute.cs
- DiscoveryVersion.cs
- DataGrid.cs
- IIS7WorkerRequest.cs
- CompilerWrapper.cs
- GroupItemAutomationPeer.cs
- EncodingInfo.cs
- DiscoveryClientDocuments.cs
- InfoCardAsymmetricCrypto.cs
- ThreadExceptionDialog.cs
- StoreAnnotationsMap.cs
- NameSpaceExtractor.cs
- _NegotiateClient.cs
- PortCache.cs
- Visual.cs
- WebResourceAttribute.cs
- _AuthenticationState.cs
- FixedStringLookup.cs
- OleStrCAMarshaler.cs