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 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
- EventProperty.cs
- DriveInfo.cs
- DependsOnAttribute.cs
- InkCanvasInnerCanvas.cs
- IIS7ConfigurationLoader.cs
- InvokeWebService.cs
- TrackingStringDictionary.cs
- XmlEventCache.cs
- LineVisual.cs
- RegexMatchCollection.cs
- Boolean.cs
- XmlSchemaType.cs
- CollectionViewGroup.cs
- _AutoWebProxyScriptHelper.cs
- EntityDataSourceQueryBuilder.cs
- LookupBindingPropertiesAttribute.cs
- Quad.cs
- StylusButton.cs
- ChineseLunisolarCalendar.cs
- SizeKeyFrameCollection.cs
- XmlnsPrefixAttribute.cs
- Misc.cs
- AssertValidation.cs
- FillBehavior.cs
- CustomCategoryAttribute.cs
- EntryWrittenEventArgs.cs
- StorageTypeMapping.cs
- ToolStripPanel.cs
- Int16AnimationUsingKeyFrames.cs
- ECDiffieHellmanPublicKey.cs
- PostBackOptions.cs
- elementinformation.cs
- DecoderNLS.cs
- XmlSchemaObjectCollection.cs
- NativeCompoundFileAPIs.cs
- VirtualPathExtension.cs
- DocComment.cs
- PageEventArgs.cs
- DefaultPropertyAttribute.cs
- WindowsListViewGroup.cs
- BinaryReader.cs
- DataGridViewEditingControlShowingEventArgs.cs
- RefType.cs
- EntityDataSourceStatementEditorForm.cs
- OutputCacheProfileCollection.cs
- NonDualMessageSecurityOverHttp.cs
- GenericWebPart.cs
- ClientSettingsProvider.cs
- ToolStripItemCollection.cs
- PrinterResolution.cs
- ConstructorBuilder.cs
- MenuTracker.cs
- SqlOuterApplyReducer.cs
- Form.cs
- DataAdapter.cs
- CustomPopupPlacement.cs
- CompiledELinqQueryState.cs
- InputLanguage.cs
- querybuilder.cs
- XsdDuration.cs
- IntegerValidatorAttribute.cs
- Viewport2DVisual3D.cs
- EditorPartCollection.cs
- CompoundFileStreamReference.cs
- XmlWellformedWriter.cs
- XmlMembersMapping.cs
- PathFigure.cs
- StyleSelector.cs
- AddInActivator.cs
- FunctionUpdateCommand.cs
- EntitySqlQueryCacheKey.cs
- MetadataPropertyvalue.cs
- SqlFunctions.cs
- WebPartUserCapability.cs
- FlagPanel.cs
- XamlTemplateSerializer.cs
- ContentType.cs
- AsyncPostBackErrorEventArgs.cs
- GifBitmapEncoder.cs
- DataControlHelper.cs
- XmlIlGenerator.cs
- metadatamappinghashervisitor.cs
- ObjectToken.cs
- CursorEditor.cs
- BinaryUtilClasses.cs
- EdmRelationshipNavigationPropertyAttribute.cs
- DataGrid.cs
- UInt64.cs
- QueryOpcode.cs
- SettingsSection.cs
- figurelengthconverter.cs
- ListArgumentProvider.cs
- TagMapCollection.cs
- ApplicationInfo.cs
- SchemaImporterExtensionElement.cs
- ResourcesBuildProvider.cs
- ConstrainedDataObject.cs
- DateTimePickerDesigner.cs
- ReadOnlyCollectionBase.cs
- FillErrorEventArgs.cs