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
- SqlServer2KCompatibilityCheck.cs
- CheckableControlBaseAdapter.cs
- InputDevice.cs
- Rect3D.cs
- CacheChildrenQuery.cs
- ThreadStaticAttribute.cs
- LineBreakRecord.cs
- TextEditorThreadLocalStore.cs
- AppDomain.cs
- TextProperties.cs
- SoapSchemaMember.cs
- HttpConfigurationContext.cs
- AsyncPostBackErrorEventArgs.cs
- AbstractSvcMapFileLoader.cs
- FormViewDeletedEventArgs.cs
- RegexCompilationInfo.cs
- SystemTcpConnection.cs
- ProjectionPlan.cs
- NavigatorOutput.cs
- Events.cs
- Control.cs
- Application.cs
- PropertyMappingExceptionEventArgs.cs
- MemoryMappedFile.cs
- SqlProviderManifest.cs
- FixedSOMElement.cs
- Style.cs
- HtmlInputButton.cs
- InteropDesigner.xaml.cs
- AssemblyInfo.cs
- listitem.cs
- LoginViewDesigner.cs
- AppModelKnownContentFactory.cs
- DataTableMappingCollection.cs
- COM2PictureConverter.cs
- ConnectionInterfaceCollection.cs
- TextParentUndoUnit.cs
- ContextStaticAttribute.cs
- GeometryConverter.cs
- DataGridViewColumnCollection.cs
- ArithmeticLiteral.cs
- CompiledAction.cs
- ReverseInheritProperty.cs
- AutomationPeer.cs
- SinglePageViewer.cs
- RuntimeArgumentHandle.cs
- PropertyPushdownHelper.cs
- Hex.cs
- ConstNode.cs
- LocatorManager.cs
- DataGridRowHeaderAutomationPeer.cs
- DynamicPropertyReader.cs
- Control.cs
- mda.cs
- ModifyActivitiesPropertyDescriptor.cs
- ModelItemDictionaryImpl.cs
- Html32TextWriter.cs
- GuidelineCollection.cs
- TlsSspiNegotiation.cs
- StoreAnnotationsMap.cs
- UnicodeEncoding.cs
- FrameworkContentElement.cs
- XmlSchemaFacet.cs
- CodeLinePragma.cs
- BinaryMethodMessage.cs
- ShaperBuffers.cs
- Rotation3DAnimation.cs
- BlockCollection.cs
- OrderedDictionary.cs
- CodeSnippetTypeMember.cs
- BindingGraph.cs
- LoaderAllocator.cs
- XmlSchemaAttributeGroup.cs
- MsmqOutputMessage.cs
- SByte.cs
- ScrollProviderWrapper.cs
- CancelAsyncOperationRequest.cs
- PersonalizationStateQuery.cs
- CodeObject.cs
- tooltip.cs
- Registry.cs
- WindowsSolidBrush.cs
- RowBinding.cs
- VolatileEnlistmentState.cs
- DataGridViewRow.cs
- ConstraintManager.cs
- DateBoldEvent.cs
- Compiler.cs
- DataGridViewRowCancelEventArgs.cs
- UdpMessageProperty.cs
- InfoCardListRequest.cs
- OLEDB_Enum.cs
- ReleaseInstanceMode.cs
- CalendarTable.cs
- UIElement3D.cs
- TextEditorDragDrop.cs
- DataRow.cs
- EntityContainerEntitySetDefiningQuery.cs
- OptimizedTemplateContentHelper.cs
- SchemeSettingElementCollection.cs