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
- SqlFunctionAttribute.cs
- VectorCollectionValueSerializer.cs
- MultiPropertyDescriptorGridEntry.cs
- ForwardPositionQuery.cs
- VisualBasicHelper.cs
- XmlArrayAttribute.cs
- DispatcherHookEventArgs.cs
- EntityProxyFactory.cs
- DbReferenceCollection.cs
- VirtualPath.cs
- AutoGeneratedFieldProperties.cs
- CodePropertyReferenceExpression.cs
- SimpleWebHandlerParser.cs
- ActivityXRefConverter.cs
- BindingContext.cs
- AutomationEvent.cs
- RuleSettings.cs
- CompressionTracing.cs
- InertiaExpansionBehavior.cs
- XamlReader.cs
- ToolStripGrip.cs
- ManifestResourceInfo.cs
- GetWinFXPath.cs
- AesCryptoServiceProvider.cs
- TextRunCacheImp.cs
- EntitySqlQueryCacheKey.cs
- hresults.cs
- SecurityBindingElement.cs
- LicenseContext.cs
- TemplateField.cs
- DataGridViewAccessibleObject.cs
- DataBindEngine.cs
- StylusShape.cs
- PolyLineSegment.cs
- HtmlLink.cs
- SafeThemeHandle.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- DataGridViewRowCancelEventArgs.cs
- DataTableNewRowEvent.cs
- DrawingAttributes.cs
- path.cs
- XPathNodeHelper.cs
- ProcessHost.cs
- odbcmetadatacollectionnames.cs
- RepeatBehaviorConverter.cs
- SmiEventSink_DeferedProcessing.cs
- HttpNamespaceReservationInstallComponent.cs
- Quaternion.cs
- ZipFileInfoCollection.cs
- QilTargetType.cs
- PropertyInfo.cs
- PropertyPathWorker.cs
- UiaCoreProviderApi.cs
- Resources.Designer.cs
- CanExecuteRoutedEventArgs.cs
- FileDetails.cs
- UiaCoreTypesApi.cs
- TouchEventArgs.cs
- RtfNavigator.cs
- Currency.cs
- HttpContext.cs
- EdmSchemaAttribute.cs
- HttpRequestWrapper.cs
- CompleteWizardStep.cs
- WebControlAdapter.cs
- EventWaitHandle.cs
- TabPage.cs
- SiteMapNode.cs
- Predicate.cs
- ExeContext.cs
- WebDescriptionAttribute.cs
- unsafenativemethodsother.cs
- EditingContext.cs
- codemethodreferenceexpression.cs
- ValidationSummary.cs
- Set.cs
- ArgumentsParser.cs
- LabelAutomationPeer.cs
- SoapElementAttribute.cs
- COSERVERINFO.cs
- UnmanagedMarshal.cs
- TrustLevel.cs
- XamlPointCollectionSerializer.cs
- DateTimeValueSerializerContext.cs
- CodeMemberEvent.cs
- BindingSource.cs
- ExitEventArgs.cs
- DataService.cs
- AddInPipelineAttributes.cs
- CheckableControlBaseAdapter.cs
- WindowsTokenRoleProvider.cs
- Mapping.cs
- TableCell.cs
- DataBindingHandlerAttribute.cs
- CommandBindingCollection.cs
- ToolBarPanel.cs
- TranslateTransform3D.cs
- SoapIgnoreAttribute.cs
- Trace.cs
- ThicknessAnimationUsingKeyFrames.cs