Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / ndp / fx / src / DataWeb / Client / System / Data / Services / Client / OperationResponse.cs / 1 / 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
- BamlCollectionHolder.cs
- PrincipalPermission.cs
- Int64AnimationBase.cs
- HttpCookieCollection.cs
- IArgumentProvider.cs
- DefaultWorkflowTransactionService.cs
- IHttpResponseInternal.cs
- RelationshipEnd.cs
- Vector.cs
- MailHeaderInfo.cs
- BooleanExpr.cs
- CopyNamespacesAction.cs
- XmlSchemaSimpleContentRestriction.cs
- XmlWrappingReader.cs
- FixedSOMContainer.cs
- StylusPoint.cs
- Tracking.cs
- ResXFileRef.cs
- ResXDataNode.cs
- _NativeSSPI.cs
- WindowsFormsHostPropertyMap.cs
- TemplateControl.cs
- ControlDesigner.cs
- ToggleButtonAutomationPeer.cs
- VBCodeProvider.cs
- DataRecordObjectView.cs
- Int32Rect.cs
- ConsumerConnectionPoint.cs
- DictionaryContent.cs
- NamespaceInfo.cs
- XmlSerializer.cs
- ToolBarPanel.cs
- SecurityToken.cs
- Vector3DAnimation.cs
- UserControlAutomationPeer.cs
- Touch.cs
- MappedMetaModel.cs
- MobileResource.cs
- TypeUsageBuilder.cs
- CellIdBoolean.cs
- AbandonedMutexException.cs
- ToolStripProgressBar.cs
- ObfuscateAssemblyAttribute.cs
- HttpModulesInstallComponent.cs
- SqlRowUpdatedEvent.cs
- ContextMenuService.cs
- WebPartUtil.cs
- COM2PropertyBuilderUITypeEditor.cs
- ApplicationTrust.cs
- PageRanges.cs
- RelationshipDetailsCollection.cs
- DataGridHeadersVisibilityToVisibilityConverter.cs
- ProxyBuilder.cs
- cookieexception.cs
- SystemEvents.cs
- BamlResourceDeserializer.cs
- InstalledFontCollection.cs
- XmlSchemaGroupRef.cs
- JavascriptXmlWriterWrapper.cs
- QilList.cs
- RawStylusInputCustomDataList.cs
- PackageRelationship.cs
- Serializer.cs
- FontUnit.cs
- XPathBuilder.cs
- CallbackHandler.cs
- XmlSerializationGeneratedCode.cs
- Merger.cs
- XmlWellformedWriter.cs
- ServiceMetadataExtension.cs
- _NTAuthentication.cs
- Font.cs
- ValueExpressions.cs
- WorkflowInstanceSuspendedRecord.cs
- NameScope.cs
- RelationshipNavigation.cs
- AssemblyResourceLoader.cs
- EditorPart.cs
- IsolationInterop.cs
- TextPatternIdentifiers.cs
- CqlLexerHelpers.cs
- CodeAttributeDeclaration.cs
- EventProviderClassic.cs
- HttpContextWrapper.cs
- Bitmap.cs
- XmlSchemaSimpleType.cs
- DecimalAnimationBase.cs
- ImageUrlEditor.cs
- PreviewKeyDownEventArgs.cs
- ListViewEditEventArgs.cs
- PropertyAccessVisitor.cs
- TimeoutConverter.cs
- Effect.cs
- DispatcherEventArgs.cs
- ParameterBuilder.cs
- TextCompositionEventArgs.cs
- DocumentOrderQuery.cs
- OperationContextScope.cs
- DependencyProperty.cs
- TextTreeUndoUnit.cs