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
- RSAOAEPKeyExchangeDeformatter.cs
- SqlUtil.cs
- SqlGatherProducedAliases.cs
- PrintController.cs
- ProfilePropertySettingsCollection.cs
- HandleCollector.cs
- MailWebEventProvider.cs
- XmlSortKey.cs
- IncomingWebResponseContext.cs
- SwitchLevelAttribute.cs
- TransactionBridgeSection.cs
- DesignerCategoryAttribute.cs
- GridProviderWrapper.cs
- SqlException.cs
- HtmlLink.cs
- TextTreeUndo.cs
- XmlTextAttribute.cs
- MarkupCompilePass1.cs
- Closure.cs
- DialogResultConverter.cs
- PackUriHelper.cs
- Size.cs
- SmtpNegotiateAuthenticationModule.cs
- SmiRequestExecutor.cs
- MultiView.cs
- DesignerLoader.cs
- XmlEnumAttribute.cs
- OneWayChannelListener.cs
- ButtonFlatAdapter.cs
- UrlMappingsSection.cs
- SQLInt32.cs
- ThicknessAnimationBase.cs
- SrgsGrammarCompiler.cs
- PublishLicense.cs
- WorkflowPrinting.cs
- AmbientProperties.cs
- RegexCompilationInfo.cs
- FrugalMap.cs
- ViewLoader.cs
- MatrixTransform.cs
- KerberosReceiverSecurityToken.cs
- NameHandler.cs
- PropertyDescriptorCollection.cs
- mediapermission.cs
- DelayedRegex.cs
- TextProviderWrapper.cs
- ContentHostHelper.cs
- StringReader.cs
- EditorServiceContext.cs
- VisualTreeFlattener.cs
- ProcessHostServerConfig.cs
- XmlAttributeCollection.cs
- UpdateProgress.cs
- DrawListViewItemEventArgs.cs
- CustomCategoryAttribute.cs
- Opcode.cs
- wmiprovider.cs
- CredentialCache.cs
- WebPartMenuStyle.cs
- DataDocumentXPathNavigator.cs
- SqlXml.cs
- NamespaceQuery.cs
- RemoteEndpointMessageProperty.cs
- smtpconnection.cs
- SpecularMaterial.cs
- MobileTextWriter.cs
- SystemWebExtensionsSectionGroup.cs
- WebScriptServiceHost.cs
- HitTestDrawingContextWalker.cs
- SmiConnection.cs
- PipeStream.cs
- GenericTypeParameterBuilder.cs
- NameObjectCollectionBase.cs
- RawKeyboardInputReport.cs
- DataGridViewLinkCell.cs
- LiteralControl.cs
- DiffuseMaterial.cs
- DrawListViewColumnHeaderEventArgs.cs
- EventSourceCreationData.cs
- URL.cs
- mediaeventargs.cs
- TrustLevel.cs
- HostingMessageProperty.cs
- RawAppCommandInputReport.cs
- IndicCharClassifier.cs
- XmlSchemaObjectTable.cs
- XappLauncher.cs
- TemplateComponentConnector.cs
- DataGridViewToolTip.cs
- Point3D.cs
- IteratorDescriptor.cs
- XmlReflectionMember.cs
- XmlReflectionMember.cs
- HttpFileCollection.cs
- RoleService.cs
- ContainerVisual.cs
- Metafile.cs
- CompositeCollectionView.cs
- GradientSpreadMethodValidation.cs
- ProtectedProviderSettings.cs