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
- FSWPathEditor.cs
- TabItemWrapperAutomationPeer.cs
- Inflater.cs
- DrawListViewColumnHeaderEventArgs.cs
- HostUtils.cs
- SchemaAttDef.cs
- BrowserInteropHelper.cs
- BinHexEncoder.cs
- MimeBasePart.cs
- Serializer.cs
- TypeInfo.cs
- PackageRelationshipSelector.cs
- ToolStripItem.cs
- COM2Properties.cs
- BevelBitmapEffect.cs
- TextTreeFixupNode.cs
- SqlNamer.cs
- PropertyPushdownHelper.cs
- FileFormatException.cs
- SimpleFieldTemplateFactory.cs
- HtmlControl.cs
- RIPEMD160Managed.cs
- ContractMapping.cs
- XmlSchemas.cs
- PostBackTrigger.cs
- While.cs
- OutputCacheSettings.cs
- WindowsStatic.cs
- WebPartConnectVerb.cs
- WebSysDisplayNameAttribute.cs
- DocumentApplication.cs
- RealizationDrawingContextWalker.cs
- UserControlCodeDomTreeGenerator.cs
- MulticastIPAddressInformationCollection.cs
- EditingMode.cs
- TagPrefixInfo.cs
- FactoryRecord.cs
- ExternalFile.cs
- DragCompletedEventArgs.cs
- XmlSchemaSimpleType.cs
- FontFamilyConverter.cs
- RayHitTestParameters.cs
- LocationFactory.cs
- HttpRequestBase.cs
- CacheManager.cs
- ItemsControl.cs
- AnnotationMap.cs
- ImmComposition.cs
- StartUpEventArgs.cs
- ConsumerConnectionPointCollection.cs
- PropertyIDSet.cs
- StreamSecurityUpgradeInitiatorBase.cs
- AnnotationComponentManager.cs
- Point3DIndependentAnimationStorage.cs
- DefaultPropertyAttribute.cs
- TextFormatter.cs
- SqlInternalConnectionSmi.cs
- SwitchElementsCollection.cs
- CheckPair.cs
- VirtualPathProvider.cs
- Utils.cs
- BitmapEffectGroup.cs
- EventArgs.cs
- SevenBitStream.cs
- MDIControlStrip.cs
- QueryComponents.cs
- BaseDataList.cs
- PhysicalFontFamily.cs
- JsonEnumDataContract.cs
- TypeConverter.cs
- ListControlDataBindingHandler.cs
- LocationChangedEventArgs.cs
- HttpWebRequest.cs
- ClosableStream.cs
- WorkflowPersistenceService.cs
- _LazyAsyncResult.cs
- PropertyChange.cs
- TableStyle.cs
- CustomWebEventKey.cs
- ColumnMapCopier.cs
- EventToken.cs
- ZoomPercentageConverter.cs
- WhiteSpaceTrimStringConverter.cs
- PeerName.cs
- RootBrowserWindow.cs
- DrawingState.cs
- DrawingContext.cs
- CqlParser.cs
- AuthenticationService.cs
- RequestContextBase.cs
- CompModHelpers.cs
- BroadcastEventHelper.cs
- MarshalByRefObject.cs
- ProxyWebPart.cs
- _HeaderInfoTable.cs
- XmlMapping.cs
- ControlValuePropertyAttribute.cs
- DataControlFieldTypeEditor.cs
- CriticalExceptions.cs
- ActivityExecutionContext.cs