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 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
- BulletedListEventArgs.cs
- BrowserCapabilitiesFactory35.cs
- SnapshotChangeTrackingStrategy.cs
- Pair.cs
- KoreanCalendar.cs
- EntityReference.cs
- XmlDigitalSignatureProcessor.cs
- SecurityTokenAuthenticator.cs
- RequestCachePolicy.cs
- WindowsStatic.cs
- ListViewVirtualItemsSelectionRangeChangedEvent.cs
- ControlCachePolicy.cs
- Focus.cs
- XmlQueryStaticData.cs
- AdornedElementPlaceholder.cs
- _BaseOverlappedAsyncResult.cs
- UserNameSecurityToken.cs
- UIElementParaClient.cs
- TemplatedMailWebEventProvider.cs
- SystemIPAddressInformation.cs
- SettingsSavedEventArgs.cs
- CalloutQueueItem.cs
- ExceptionHandlerDesigner.cs
- HtmlForm.cs
- NumberSubstitution.cs
- TcpAppDomainProtocolHandler.cs
- LabelEditEvent.cs
- EntityConnectionStringBuilder.cs
- MemberProjectedSlot.cs
- AttributeCollection.cs
- shaperfactoryquerycacheentry.cs
- DbDataAdapter.cs
- WebPartConnectionsCloseVerb.cs
- SessionStateItemCollection.cs
- CodeNamespaceImportCollection.cs
- DataBoundControlAdapter.cs
- TargetControlTypeAttribute.cs
- MultiPageTextView.cs
- URL.cs
- AbandonedMutexException.cs
- SqlUserDefinedTypeAttribute.cs
- SinglePhaseEnlistment.cs
- ItemChangedEventArgs.cs
- ToolStripRenderer.cs
- DownloadProgressEventArgs.cs
- GlobalEventManager.cs
- EventHandlers.cs
- IsolatedStoragePermission.cs
- MimeBasePart.cs
- SystemUnicastIPAddressInformation.cs
- JsonWriter.cs
- NativeMethods.cs
- IApplicationTrustManager.cs
- ConsumerConnectionPoint.cs
- MDIControlStrip.cs
- DeflateEmulationStream.cs
- EntityWithKeyStrategy.cs
- StreamGeometry.cs
- RegexCapture.cs
- HideDisabledControlAdapter.cs
- TextSearch.cs
- TransportChannelFactory.cs
- StringBuilder.cs
- PartManifestEntry.cs
- InvalidProgramException.cs
- DataContractSerializer.cs
- TimeSpanSecondsConverter.cs
- TagPrefixAttribute.cs
- NameValuePair.cs
- VariableAction.cs
- UIElement.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- ToolTip.cs
- EventItfInfo.cs
- CultureTableRecord.cs
- SingleQueryOperator.cs
- StaticDataManager.cs
- NetCodeGroup.cs
- XmlSecureResolver.cs
- FormsAuthentication.cs
- altserialization.cs
- hresults.cs
- WorkflowControlClient.cs
- WMIInterop.cs
- SafeNativeMethods.cs
- ValidationRule.cs
- X509ClientCertificateAuthenticationElement.cs
- InputScopeManager.cs
- WinEventWrap.cs
- TargetException.cs
- MatrixAnimationUsingPath.cs
- StateMachine.cs
- InitializationEventAttribute.cs
- WorkflowStateRollbackService.cs
- SerializationObjectManager.cs
- CodeTypeOfExpression.cs
- CharacterBufferReference.cs
- QueueProcessor.cs
- MenuItemStyle.cs
- XmlReflectionImporter.cs