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
- GroupedContextMenuStrip.cs
- DataGridViewHitTestInfo.cs
- SHA1CryptoServiceProvider.cs
- WorkflowDesignerMessageFilter.cs
- GeneralTransformGroup.cs
- relpropertyhelper.cs
- UserInitiatedNavigationPermission.cs
- CharUnicodeInfo.cs
- EntityProviderFactory.cs
- documentation.cs
- WebEventTraceProvider.cs
- XMLDiffLoader.cs
- ClassGenerator.cs
- ResumeStoryboard.cs
- DynamicUpdateCommand.cs
- OptimalTextSource.cs
- EncoderBestFitFallback.cs
- SqlInternalConnectionSmi.cs
- MultipartContentParser.cs
- ChainOfResponsibility.cs
- StylusPointPropertyUnit.cs
- FunctionQuery.cs
- AppearanceEditorPart.cs
- ThumbButtonInfoCollection.cs
- CodeThrowExceptionStatement.cs
- PageStatePersister.cs
- WebPartDescriptionCollection.cs
- SystemResourceKey.cs
- ConfigXmlDocument.cs
- DSASignatureFormatter.cs
- Rotation3DAnimationBase.cs
- PrintSystemException.cs
- InplaceBitmapMetadataWriter.cs
- TextMarkerSource.cs
- BuildProvidersCompiler.cs
- SmiEventSink_DeferedProcessing.cs
- DateTimeSerializationSection.cs
- HighlightComponent.cs
- DataGridViewRowHeaderCell.cs
- CatalogZoneDesigner.cs
- WindowsIPAddress.cs
- MasterPageParser.cs
- BamlResourceDeserializer.cs
- WindowsSidIdentity.cs
- HealthMonitoringSection.cs
- ScrollBarRenderer.cs
- MSG.cs
- AccessedThroughPropertyAttribute.cs
- XPathMessageFilter.cs
- DataControlLinkButton.cs
- HelpProvider.cs
- AttachedPropertyMethodSelector.cs
- ConfigurationManagerHelperFactory.cs
- ImpersonateTokenRef.cs
- xdrvalidator.cs
- ProtocolsConfigurationEntry.cs
- SystemResourceKey.cs
- IndentedWriter.cs
- FilterQueryOptionExpression.cs
- DataStreams.cs
- ConnectionStringsSection.cs
- ISAPIRuntime.cs
- WebReferenceOptions.cs
- Font.cs
- XmlSignificantWhitespace.cs
- TextParagraph.cs
- MarkupExtensionSerializer.cs
- WebPartVerb.cs
- TextTreeRootTextBlock.cs
- DataGridViewCellValueEventArgs.cs
- WmpBitmapEncoder.cs
- JsonUriDataContract.cs
- HighlightComponent.cs
- AnnotationHighlightLayer.cs
- WebServiceBindingAttribute.cs
- XmlExpressionDumper.cs
- HttpWebRequest.cs
- ListDictionaryInternal.cs
- SoapMessage.cs
- SqlUnionizer.cs
- WeakReadOnlyCollection.cs
- FormsAuthenticationTicket.cs
- ClockController.cs
- CheckBoxDesigner.cs
- SafeFindHandle.cs
- WsdlBuildProvider.cs
- TableCellAutomationPeer.cs
- ConditionChanges.cs
- TemplatedMailWebEventProvider.cs
- MessageHeader.cs
- DesignerDataTableBase.cs
- SimpleHandlerFactory.cs
- MemberExpression.cs
- _ProxyChain.cs
- WebCategoryAttribute.cs
- DiscoveryProxy.cs
- PropertyValueEditor.cs
- TreeNodeCollectionEditor.cs
- UserThread.cs
- AppDomainProtocolHandler.cs