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 Dictionary headers;
/// Http status code of the response.
private int statusCode;
/// exception to throw during get results
private Exception innerException;
///
/// constructor
///
/// HTTP headers
internal OperationResponse(Dictionary headers)
{
Debug.Assert(null != headers, "null headers");
this.headers = headers;
}
/// Http headers of the response.
public IDictionary Headers
{
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 Dictionary headers;
/// Http status code of the response.
private int statusCode;
/// exception to throw during get results
private Exception innerException;
///
/// constructor
///
/// HTTP headers
internal OperationResponse(Dictionary headers)
{
Debug.Assert(null != headers, "null headers");
this.headers = headers;
}
/// Http headers of the response.
public IDictionary Headers
{
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
- columnmapkeybuilder.cs
- GeometryGroup.cs
- TabItemAutomationPeer.cs
- httpstaticobjectscollection.cs
- oledbmetadatacolumnnames.cs
- ToolStripOverflowButton.cs
- MethodRental.cs
- NCryptNative.cs
- SQLInt32Storage.cs
- thaishape.cs
- XLinq.cs
- SpellerStatusTable.cs
- SiteMapProvider.cs
- WebPartDeleteVerb.cs
- TypeDescriptionProvider.cs
- CellTreeNode.cs
- DataRelation.cs
- RemotingConfiguration.cs
- Schedule.cs
- CodeTypeConstructor.cs
- VectorCollectionValueSerializer.cs
- NamedPipeAppDomainProtocolHandler.cs
- DataGridViewColumnCollectionEditor.cs
- NetworkInterface.cs
- CatalogZone.cs
- HelpProvider.cs
- SqlStream.cs
- XPathNavigatorKeyComparer.cs
- AssemblyName.cs
- Nullable.cs
- ContainerAction.cs
- _ShellExpression.cs
- SmtpAuthenticationManager.cs
- GridEntryCollection.cs
- WSFederationHttpSecurity.cs
- ScrollProperties.cs
- PermissionAttributes.cs
- MessageQueueException.cs
- HttpListenerContext.cs
- CategoryAttribute.cs
- Rijndael.cs
- WebPartDescription.cs
- TypeLibConverter.cs
- HealthMonitoringSection.cs
- DocumentEventArgs.cs
- ColorBuilder.cs
- FirstMatchCodeGroup.cs
- ServiceCredentials.cs
- ProcessProtocolHandler.cs
- EditorPartChrome.cs
- UIElementHelper.cs
- RectangleGeometry.cs
- PersonalizationStateQuery.cs
- SiteMapSection.cs
- StringValueConverter.cs
- Helper.cs
- MessageQueueTransaction.cs
- Form.cs
- SqlParameterizer.cs
- HtmlInputPassword.cs
- ThicknessKeyFrameCollection.cs
- UInt32Storage.cs
- ListView.cs
- AppSettingsExpressionBuilder.cs
- ManagedFilter.cs
- Span.cs
- RequestCacheManager.cs
- SafeNativeMethods.cs
- CompiledRegexRunner.cs
- XmlImplementation.cs
- CustomErrorsSection.cs
- GlyphShapingProperties.cs
- KeyGesture.cs
- WebBrowserContainer.cs
- TextSegment.cs
- StyleCollectionEditor.cs
- GacUtil.cs
- RelationshipEndCollection.cs
- ConnectivityStatus.cs
- UserCancellationException.cs
- AdapterDictionary.cs
- Calendar.cs
- GeometryHitTestParameters.cs
- RadioButtonFlatAdapter.cs
- LineBreak.cs
- XmlSchemaValidator.cs
- EmptyCollection.cs
- XPathDocumentNavigator.cs
- ToolStripRenderEventArgs.cs
- AudioStateChangedEventArgs.cs
- NumberFunctions.cs
- ConstrainedDataObject.cs
- TransformerInfoCollection.cs
- ContractMapping.cs
- shaperfactory.cs
- oledbmetadatacolumnnames.cs
- DialogResultConverter.cs
- EntityClientCacheKey.cs
- RectangleGeometry.cs
- SafeNativeMethods.cs