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
- DataObjectFieldAttribute.cs
- TypeDescriptionProvider.cs
- DocumentReferenceCollection.cs
- SmiEventStream.cs
- TableDesigner.cs
- RegexMatch.cs
- FileDialog_Vista_Interop.cs
- XmlObjectSerializerWriteContextComplex.cs
- CmsInterop.cs
- UnmanagedMemoryStream.cs
- NativeMethods.cs
- DefaultShape.cs
- HyperLinkStyle.cs
- ContentElementCollection.cs
- QueryServiceConfigHandle.cs
- ResourceDescriptionAttribute.cs
- EvidenceBase.cs
- PackageStore.cs
- ModelUtilities.cs
- SafeLocalAllocation.cs
- HtmlPageAdapter.cs
- ValidatorCollection.cs
- AppSettingsReader.cs
- Number.cs
- CngAlgorithm.cs
- AdornerDecorator.cs
- BitmapScalingModeValidation.cs
- OperationContractAttribute.cs
- BrowsableAttribute.cs
- HttpPostedFileBase.cs
- remotingproxy.cs
- HitTestParameters.cs
- UnknownBitmapEncoder.cs
- TextModifierScope.cs
- SqlDeflator.cs
- SoapFault.cs
- FixedSOMTableCell.cs
- SecUtil.cs
- Hex.cs
- NameValueSectionHandler.cs
- UnicodeEncoding.cs
- EdmType.cs
- SoapReflectionImporter.cs
- AppDomainAttributes.cs
- ClientSideQueueItem.cs
- MetafileHeader.cs
- AsyncResult.cs
- CompareValidator.cs
- ComPlusAuthorization.cs
- SchemaImporterExtensionElementCollection.cs
- IdnMapping.cs
- ApplicationServicesHostFactory.cs
- EnumMember.cs
- ControlType.cs
- QueueProcessor.cs
- ProjectionPathSegment.cs
- BamlTreeNode.cs
- DbXmlEnabledProviderManifest.cs
- AssemblyCache.cs
- UrlAuthorizationModule.cs
- FloaterParagraph.cs
- BitmapData.cs
- EdmProviderManifest.cs
- DataControlButton.cs
- Delay.cs
- TransactionValidationBehavior.cs
- BrushConverter.cs
- XpsFilter.cs
- PathParser.cs
- FlowLayout.cs
- PassportIdentity.cs
- InkPresenter.cs
- TextEncodedRawTextWriter.cs
- ReachFixedPageSerializer.cs
- ObjectAnimationBase.cs
- PageContentAsyncResult.cs
- SiteMapDataSource.cs
- TransformPattern.cs
- ReadOnlyMetadataCollection.cs
- MsmqUri.cs
- AttributeEmitter.cs
- TraceUtility.cs
- InvalidDataContractException.cs
- Perspective.cs
- TripleDES.cs
- UIElement3DAutomationPeer.cs
- DeploymentSectionCache.cs
- TaskCanceledException.cs
- XmlProcessingInstruction.cs
- TaskFormBase.cs
- ReadOnlyAttribute.cs
- Label.cs
- TextTreeExtractElementUndoUnit.cs
- AccessKeyManager.cs
- ToolStripButton.cs
- DataGridViewTopRowAccessibleObject.cs
- ReadWriteObjectLock.cs
- Point4DConverter.cs
- EdmType.cs
- DrawingDrawingContext.cs