Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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 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
- Nullable.cs
- BooleanAnimationBase.cs
- ReferencedType.cs
- TextWriter.cs
- TemplateNameScope.cs
- SiblingIterators.cs
- HandlerBase.cs
- Typography.cs
- OrderedDictionaryStateHelper.cs
- _IPv4Address.cs
- ChangeConflicts.cs
- SafeEventHandle.cs
- XPathDocumentIterator.cs
- Int16.cs
- PeerNameResolver.cs
- HtmlValidatorAdapter.cs
- BasicHttpMessageSecurity.cs
- SqlDataSourceCache.cs
- RTLAwareMessageBox.cs
- MDIControlStrip.cs
- TransformedBitmap.cs
- TemplateBuilder.cs
- BamlVersionHeader.cs
- SymbolType.cs
- AggregateNode.cs
- DataGridViewRowsAddedEventArgs.cs
- ProxyGenerator.cs
- RecordBuilder.cs
- ParameterBuilder.cs
- MetafileEditor.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- LayoutManager.cs
- SessionEndedEventArgs.cs
- PrimitiveCodeDomSerializer.cs
- DataServiceRequestOfT.cs
- WorkflowApplication.cs
- WeakHashtable.cs
- CodeTypeReferenceExpression.cs
- PieceDirectory.cs
- HtmlTable.cs
- DiscoveryReference.cs
- LongTypeConverter.cs
- SortDescription.cs
- XmlRootAttribute.cs
- PeerCollaborationPermission.cs
- MemberDescriptor.cs
- Resources.Designer.cs
- RegexMatchCollection.cs
- XmlToDatasetMap.cs
- Typography.cs
- StyleCollection.cs
- ValidatorCompatibilityHelper.cs
- DummyDataSource.cs
- HttpListenerRequest.cs
- EdmConstants.cs
- InfoCardRSAPKCS1KeyExchangeDeformatter.cs
- JsonReaderWriterFactory.cs
- CapabilitiesRule.cs
- Stylus.cs
- DataGridViewColumnEventArgs.cs
- SettingsAttributes.cs
- SpecialNameAttribute.cs
- Splitter.cs
- OLEDB_Enum.cs
- StrokeNodeOperations2.cs
- FactoryGenerator.cs
- HttpPostLocalhostServerProtocol.cs
- XPathScanner.cs
- XmlIterators.cs
- ImageKeyConverter.cs
- CodeAttributeDeclaration.cs
- EnumBuilder.cs
- HtmlInputControl.cs
- ExpressionBuilderContext.cs
- XPathExpr.cs
- CallbackTimeoutsBehavior.cs
- FrameworkTextComposition.cs
- RowSpanVector.cs
- Single.cs
- GeneralTransform3D.cs
- WebRequestModuleElement.cs
- HttpWebRequest.cs
- RightNameExpirationInfoPair.cs
- SafeSecurityHelper.cs
- Publisher.cs
- DataGridViewUtilities.cs
- XmlAttributes.cs
- DeviceSpecificDesigner.cs
- PointIndependentAnimationStorage.cs
- CqlIdentifiers.cs
- TemplateControlCodeDomTreeGenerator.cs
- DispatchWrapper.cs
- HtmlElementCollection.cs
- XamlStackWriter.cs
- GPRECTF.cs
- FileVersionInfo.cs
- HyperLink.cs
- ExeConfigurationFileMap.cs
- MultiPageTextView.cs
- TreeViewItemAutomationPeer.cs