Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Channels / HttpResponseMessageProperty.cs / 1 / HttpResponseMessageProperty.cs
//---------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. //--------------------------------------------------------------------------- namespace System.ServiceModel.Channels { using System; using System.Net; public sealed class HttpResponseMessageProperty { WebHeaderCollection headers; WebHeaderCollection originalHeaders; HttpStatusCode statusCode; string statusDescription; bool suppressEntityBody; internal HttpResponseMessageProperty(WebHeaderCollection originalHeaders) : this() { this.originalHeaders = originalHeaders; } public HttpResponseMessageProperty() { this.statusCode = HttpStatusCode.OK; this.statusDescription = null; // null means use description from status code this.suppressEntityBody = false; } public static string Name { get { return "httpResponse"; } } public WebHeaderCollection Headers { get { if (this.headers == null) { this.headers = new WebHeaderCollection(); if (this.originalHeaders != null) { this.headers.Add(originalHeaders); this.originalHeaders = null; } } return this.headers; } } public HttpStatusCode StatusCode { get { return this.statusCode; } set { int valueInt = (int)value; if (valueInt < 100 || valueInt > 599) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value, SR.GetString(SR.ValueMustBeInRange, 100, 599))); } this.statusCode = value; } } public string StatusDescription { get { return this.statusDescription; } set { this.statusDescription = value; } } public bool SuppressEntityBody { get { return this.suppressEntityBody; } set { this.suppressEntityBody = value; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- OracleBinary.cs
- SHA1.cs
- DataReceivedEventArgs.cs
- UIElementParaClient.cs
- InkCollectionBehavior.cs
- FixedSOMTableCell.cs
- XsdDateTime.cs
- AutomationPatternInfo.cs
- PagesSection.cs
- FeatureSupport.cs
- SqlClientMetaDataCollectionNames.cs
- Span.cs
- RawStylusInput.cs
- EncryptedPackageFilter.cs
- RoutingBehavior.cs
- LexicalChunk.cs
- TokenBasedSetEnumerator.cs
- GridViewColumnHeader.cs
- XmlAttributeCollection.cs
- ScriptReferenceEventArgs.cs
- RelationshipManager.cs
- TreeNodeEventArgs.cs
- SEHException.cs
- ExtentKey.cs
- ChtmlImageAdapter.cs
- ServiceOperation.cs
- ResourceAttributes.cs
- MediaContextNotificationWindow.cs
- DoubleStorage.cs
- MaterialGroup.cs
- XmlEventCache.cs
- DataControlField.cs
- PropVariant.cs
- RuleRefElement.cs
- FixedTextPointer.cs
- FormatConvertedBitmap.cs
- ListContractAdapter.cs
- MessageAction.cs
- BrowserCapabilitiesFactoryBase.cs
- CompiledXpathExpr.cs
- JapaneseLunisolarCalendar.cs
- OutOfProcStateClientManager.cs
- CornerRadiusConverter.cs
- UIElementParagraph.cs
- AuthorizationSection.cs
- QilParameter.cs
- SQLDateTime.cs
- _NegoStream.cs
- DataContractFormatAttribute.cs
- ListDesigner.cs
- ConnectionPoolManager.cs
- PropertyNames.cs
- OleDbDataAdapter.cs
- UndoManager.cs
- ServiceManager.cs
- PhysicalAddress.cs
- PreDigestedSignedInfo.cs
- HtmlTableCellCollection.cs
- EventKeyword.cs
- RemotingConfigParser.cs
- SafeRightsManagementQueryHandle.cs
- ByteAnimationBase.cs
- XmlAtomErrorReader.cs
- ObjectComplexPropertyMapping.cs
- EmbeddedMailObjectsCollection.cs
- CodeAttributeDeclarationCollection.cs
- AppModelKnownContentFactory.cs
- TreeViewImageGenerator.cs
- ExpressionBuilder.cs
- SoapEnumAttribute.cs
- TypePresenter.xaml.cs
- SqlInternalConnectionTds.cs
- NativeWindow.cs
- SqlDataSourceView.cs
- MatrixTransform3D.cs
- SecurityDocument.cs
- WebPartMinimizeVerb.cs
- GlobalizationAssembly.cs
- DataSourceProvider.cs
- SoundPlayerAction.cs
- PeerOutputChannel.cs
- _FixedSizeReader.cs
- WebPartDeleteVerb.cs
- BufferBuilder.cs
- WindowExtensionMethods.cs
- ColumnMapProcessor.cs
- PermissionSet.cs
- CompilerGlobalScopeAttribute.cs
- _UncName.cs
- UniqueConstraint.cs
- BlurBitmapEffect.cs
- Span.cs
- HandoffBehavior.cs
- StdRegProviderWrapper.cs
- MouseEvent.cs
- DataGrid.cs
- ActivityBindForm.cs
- OutputCacheSection.cs
- NamespaceQuery.cs
- Byte.cs