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
- FormsAuthenticationEventArgs.cs
- DocumentOutline.cs
- TableItemPatternIdentifiers.cs
- ToolStripRendererSwitcher.cs
- NullableConverter.cs
- Label.cs
- XmlDataImplementation.cs
- GeneralTransform.cs
- Buffer.cs
- DatatypeImplementation.cs
- ServerType.cs
- FileRecordSequence.cs
- OutputScope.cs
- ReaderWriterLock.cs
- TypeCollectionPropertyEditor.cs
- TempFiles.cs
- CharacterBufferReference.cs
- Parser.cs
- ApplicationSettingsBase.cs
- SqlDelegatedTransaction.cs
- StringResourceManager.cs
- XmlElementCollection.cs
- Attributes.cs
- PackageRelationshipSelector.cs
- KeyValueConfigurationElement.cs
- SessionPageStateSection.cs
- SchemaInfo.cs
- TimeoutValidationAttribute.cs
- _BaseOverlappedAsyncResult.cs
- StringBuilder.cs
- XmlCharCheckingReader.cs
- FieldMetadata.cs
- DataGridComboBoxColumn.cs
- RowsCopiedEventArgs.cs
- cookiecontainer.cs
- ConfigurationSectionHelper.cs
- Type.cs
- ConnectionPointCookie.cs
- SpeechUI.cs
- DataError.cs
- StateDesigner.Helpers.cs
- ConsumerConnectionPoint.cs
- Win32Native.cs
- WorkerRequest.cs
- ArrangedElementCollection.cs
- FolderBrowserDialog.cs
- NativeCompoundFileAPIs.cs
- TreeNodeMouseHoverEvent.cs
- FrameworkTextComposition.cs
- StreamGeometry.cs
- XmlCharCheckingReader.cs
- WebAdminConfigurationHelper.cs
- GeometryGroup.cs
- InkSerializer.cs
- DbConnectionFactory.cs
- _RequestCacheProtocol.cs
- CategoryGridEntry.cs
- ToolStripPanelDesigner.cs
- JsonEnumDataContract.cs
- _CacheStreams.cs
- UpnEndpointIdentity.cs
- AssemblyResourceLoader.cs
- DbConnectionPoolOptions.cs
- CorePropertiesFilter.cs
- AccessedThroughPropertyAttribute.cs
- ViewBase.cs
- Grid.cs
- diagnosticsswitches.cs
- XmlILOptimizerVisitor.cs
- FtpCachePolicyElement.cs
- BindingCollection.cs
- MissingSatelliteAssemblyException.cs
- InternalMappingException.cs
- ThousandthOfEmRealPoints.cs
- HitTestWithGeometryDrawingContextWalker.cs
- VerificationAttribute.cs
- FlowDocumentScrollViewer.cs
- UnhandledExceptionEventArgs.cs
- UnsafeNativeMethods.cs
- XmlQueryOutput.cs
- ObjectPersistData.cs
- DataGridCellsPresenter.cs
- InternalBufferOverflowException.cs
- PropertyCondition.cs
- FastPropertyAccessor.cs
- ProfilePropertySettingsCollection.cs
- AssociationType.cs
- X509Utils.cs
- AsyncPostBackErrorEventArgs.cs
- MailWriter.cs
- XmlSchemaType.cs
- HtmlTernaryTree.cs
- ConstructorBuilder.cs
- SimpleType.cs
- PropertyConverter.cs
- MissingSatelliteAssemblyException.cs
- SystemPens.cs
- BaseCodePageEncoding.cs
- xdrvalidator.cs
- HtmlForm.cs