Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataWeb / Client / System / Data / Services / Client / OperationResponse.cs / 1305376 / 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
- HwndProxyElementProvider.cs
- XmlWhitespace.cs
- XmlNamespaceMapping.cs
- BaseTemplateCodeDomTreeGenerator.cs
- StrongNameKeyPair.cs
- WindowsFormsEditorServiceHelper.cs
- XmlMemberMapping.cs
- CalendarSelectionChangedEventArgs.cs
- RuntimeHelpers.cs
- Line.cs
- BasicBrowserDialog.cs
- HttpCookieCollection.cs
- RoutedPropertyChangedEventArgs.cs
- SafeRegistryHandle.cs
- ListSortDescriptionCollection.cs
- IdentityReference.cs
- ReadOnlyDictionary.cs
- BaseParser.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- HttpChannelBindingToken.cs
- Rotation3DAnimationUsingKeyFrames.cs
- XmlDownloadManager.cs
- SQLSingleStorage.cs
- BrowserDefinition.cs
- Content.cs
- ParentControlDesigner.cs
- ButtonBase.cs
- HttpRuntime.cs
- IdnMapping.cs
- FontCacheUtil.cs
- TdsParameterSetter.cs
- MarshalByValueComponent.cs
- SuppressIldasmAttribute.cs
- IdentityModelDictionary.cs
- AbsoluteQuery.cs
- PrimitiveType.cs
- HtmlTextArea.cs
- ConfigurationElement.cs
- HtmlTextArea.cs
- Int32AnimationUsingKeyFrames.cs
- UTF8Encoding.cs
- WebPartHelpVerb.cs
- BitmapEffectCollection.cs
- FocusChangedEventArgs.cs
- Int64Storage.cs
- OleAutBinder.cs
- PropagatorResult.cs
- PrintController.cs
- ServiceReference.cs
- FormViewPageEventArgs.cs
- SliderAutomationPeer.cs
- DataGridViewImageColumn.cs
- ArrayExtension.cs
- SerTrace.cs
- XsltSettings.cs
- ToolBar.cs
- MemoryMappedFile.cs
- ParseNumbers.cs
- TargetConverter.cs
- MouseDevice.cs
- Light.cs
- SQLBinary.cs
- CacheChildrenQuery.cs
- PropertyPathWorker.cs
- DbConnectionPoolOptions.cs
- StorageSetMapping.cs
- Convert.cs
- LeftCellWrapper.cs
- FormsAuthenticationConfiguration.cs
- SystemResources.cs
- AutomationEventArgs.cs
- SqlLiftIndependentRowExpressions.cs
- Stylesheet.cs
- PageResolution.cs
- PeerContact.cs
- MethodBuilderInstantiation.cs
- GlyphTypeface.cs
- DataGridViewRowPostPaintEventArgs.cs
- Activity.cs
- ConfigurationLocationCollection.cs
- TreeNodeStyleCollection.cs
- DNS.cs
- DataGridViewCellStyleContentChangedEventArgs.cs
- SignatureDescription.cs
- SqlSupersetValidator.cs
- FormsAuthenticationTicket.cs
- InstanceKeyView.cs
- FastEncoderWindow.cs
- BorderGapMaskConverter.cs
- ConfigurationValidatorBase.cs
- XamlSerializerUtil.cs
- ExpressionPrinter.cs
- DataViewSetting.cs
- ChildChangedEventArgs.cs
- Assembly.cs
- cache.cs
- VisualProxy.cs
- HtmlInputRadioButton.cs
- Emitter.cs
- DiscreteKeyFrames.cs