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
- _ContextAwareResult.cs
- SamlAttribute.cs
- SpeechDetectedEventArgs.cs
- SoapCodeExporter.cs
- _Events.cs
- _IPv4Address.cs
- OleDbReferenceCollection.cs
- MultiSelectRootGridEntry.cs
- MaterializeFromAtom.cs
- ResolveNameEventArgs.cs
- TreeWalkHelper.cs
- LineServices.cs
- OrCondition.cs
- XPathSelectionIterator.cs
- OutputCacheSection.cs
- QilLiteral.cs
- ColorConvertedBitmapExtension.cs
- OutOfMemoryException.cs
- FilterQueryOptionExpression.cs
- DbProviderManifest.cs
- MimeMapping.cs
- BoolExpressionVisitors.cs
- ImageBrush.cs
- RuntimeWrappedException.cs
- AttachedProperty.cs
- StreamGeometry.cs
- MaskedTextProvider.cs
- CatalogZoneBase.cs
- InternalsVisibleToAttribute.cs
- ChannelServices.cs
- XPathScanner.cs
- ApplicationSettingsBase.cs
- TrackingStringDictionary.cs
- EndpointAddress.cs
- login.cs
- X500Name.cs
- ImageProxy.cs
- EventMappingSettingsCollection.cs
- LinqDataSourceHelper.cs
- MessageEventSubscriptionService.cs
- EditorServiceContext.cs
- TrustManagerMoreInformation.cs
- FormViewPageEventArgs.cs
- CanonicalizationDriver.cs
- Trigger.cs
- UndirectedGraph.cs
- IsolatedStorageFileStream.cs
- PolicyStatement.cs
- ThemeDirectoryCompiler.cs
- TcpTransportSecurity.cs
- TextEncodedRawTextWriter.cs
- EnumDataContract.cs
- serverconfig.cs
- BamlTreeNode.cs
- WebControlAdapter.cs
- ObjectDataSourceMethodEditor.cs
- CriticalFinalizerObject.cs
- PermissionRequestEvidence.cs
- GridViewCommandEventArgs.cs
- ipaddressinformationcollection.cs
- EntityConnectionStringBuilder.cs
- FirstQueryOperator.cs
- ProbeDuplexAsyncResult.cs
- SimpleRecyclingCache.cs
- ContextStaticAttribute.cs
- AccessDataSourceView.cs
- ControlCollection.cs
- PropertyGridView.cs
- ArglessEventHandlerProxy.cs
- WebPartConnectionsEventArgs.cs
- Message.cs
- ExecutionEngineException.cs
- ExtendedProperty.cs
- SqlCommand.cs
- MimeBasePart.cs
- ListItemParagraph.cs
- _SecureChannel.cs
- StandardToolWindows.cs
- XsdCachingReader.cs
- TypeConverter.cs
- SQLMoney.cs
- WebUtil.cs
- SiteMapHierarchicalDataSourceView.cs
- dtdvalidator.cs
- DataGridColumnsPage.cs
- LayoutSettings.cs
- ADConnectionHelper.cs
- SuppressMergeCheckAttribute.cs
- DateTimeStorage.cs
- SmiRecordBuffer.cs
- FixedSOMLineRanges.cs
- TemplateBindingExtensionConverter.cs
- RpcCryptoContext.cs
- MatrixUtil.cs
- Compiler.cs
- ExtendedPropertyCollection.cs
- _HeaderInfo.cs
- CodeTypeDeclaration.cs
- TypeContext.cs
- ConfigurationException.cs