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 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
- HttpHandlersSection.cs
- AnimationClockResource.cs
- DictionaryItemsCollection.cs
- SessionViewState.cs
- EncoderFallback.cs
- MergePropertyDescriptor.cs
- PartialArray.cs
- messageonlyhwndwrapper.cs
- EventLogRecord.cs
- MappableObjectManager.cs
- PathParser.cs
- SQLConvert.cs
- WebZone.cs
- Grid.cs
- FaultDesigner.cs
- ObjectDataSourceChooseTypePanel.cs
- TextAutomationPeer.cs
- AuthStoreRoleProvider.cs
- ResourceReferenceKeyNotFoundException.cs
- KnownIds.cs
- WeakReferenceEnumerator.cs
- QilLiteral.cs
- PeerNearMe.cs
- EdmValidator.cs
- UIElement3D.cs
- TransactionsSectionGroup.cs
- SchemaEntity.cs
- BoundColumn.cs
- Int32KeyFrameCollection.cs
- XPathSelectionIterator.cs
- EntityContainerRelationshipSet.cs
- ImplicitInputBrush.cs
- NativeMethods.cs
- OracleInternalConnection.cs
- COM2PictureConverter.cs
- SkipStoryboardToFill.cs
- SymbolEqualComparer.cs
- ToolTip.cs
- DelegatedStream.cs
- CompilationUtil.cs
- SevenBitStream.cs
- WizardStepBase.cs
- ContentPresenter.cs
- ExpandButtonVisibilityConverter.cs
- TextEffectResolver.cs
- HttpDictionary.cs
- linebase.cs
- PathBox.cs
- parserscommon.cs
- ReachDocumentReferenceCollectionSerializer.cs
- PointCollectionValueSerializer.cs
- Inflater.cs
- HttpContext.cs
- WebPartDescriptionCollection.cs
- WindowsContainer.cs
- StartUpEventArgs.cs
- SqlRetyper.cs
- dsa.cs
- NavigationPropertyEmitter.cs
- IndexedEnumerable.cs
- FormViewUpdatedEventArgs.cs
- CustomAttributeSerializer.cs
- DataColumn.cs
- CommandManager.cs
- PathTooLongException.cs
- LogExtentCollection.cs
- QueryAsyncResult.cs
- MetadataArtifactLoaderCompositeResource.cs
- ApplicationContext.cs
- DataGridRowsPresenter.cs
- Mutex.cs
- IconConverter.cs
- MonitorWrapper.cs
- StringBuilder.cs
- FigureParagraph.cs
- XPathNavigator.cs
- MissingMemberException.cs
- querybuilder.cs
- SelectedGridItemChangedEvent.cs
- TableSectionStyle.cs
- InnerItemCollectionView.cs
- EntityContainerEntitySet.cs
- CompoundFileDeflateTransform.cs
- TableLayoutSettings.cs
- Component.cs
- Int32.cs
- ActiveXSite.cs
- VisualBrush.cs
- EntityContainer.cs
- ContextMenuStripGroupCollection.cs
- AttachmentCollection.cs
- RawTextInputReport.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- ListViewGroupItemCollection.cs
- CompareValidator.cs
- TabItemWrapperAutomationPeer.cs
- HandlerFactoryCache.cs
- HttpTransportElement.cs
- ResourceSetExpression.cs
- ContainerActivationHelper.cs