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
- nulltextcontainer.cs
- FilterElement.cs
- ObjectDataSourceView.cs
- WebBrowserDocumentCompletedEventHandler.cs
- XmlDataProvider.cs
- OptimalTextSource.cs
- Update.cs
- Rotation3DKeyFrameCollection.cs
- DatePicker.cs
- DataFieldCollectionEditor.cs
- SmtpDateTime.cs
- RuntimeHelpers.cs
- NativeRecognizer.cs
- _ServiceNameStore.cs
- DEREncoding.cs
- cookieexception.cs
- EntityCollection.cs
- streamingZipPartStream.cs
- ScrollChrome.cs
- RotateTransform3D.cs
- ColumnTypeConverter.cs
- DbProviderFactory.cs
- BulletChrome.cs
- SettingsBase.cs
- DetailsViewRow.cs
- XhtmlBasicTextViewAdapter.cs
- PasswordDeriveBytes.cs
- DataContractSerializerSection.cs
- Light.cs
- LocalizableAttribute.cs
- EdmToObjectNamespaceMap.cs
- UncommonField.cs
- UIInitializationException.cs
- SqlCommandSet.cs
- CollectionsUtil.cs
- MenuItem.cs
- TextReader.cs
- Visual3D.cs
- MemberProjectionIndex.cs
- PageParser.cs
- DataSetViewSchema.cs
- Stopwatch.cs
- AddingNewEventArgs.cs
- WriteTimeStream.cs
- CodeDirectoryCompiler.cs
- HostingEnvironment.cs
- UpdatePanelTrigger.cs
- InfoCardRSAPKCS1SignatureFormatter.cs
- BypassElement.cs
- HttpProfileBase.cs
- SoapObjectWriter.cs
- SafeHandles.cs
- WrapperSecurityCommunicationObject.cs
- MeasureData.cs
- XmlUnspecifiedAttribute.cs
- TimelineGroup.cs
- NavigationService.cs
- TypeBrowser.xaml.cs
- ToolStripPanelRenderEventArgs.cs
- SafeCoTaskMem.cs
- EnumUnknown.cs
- QuaternionConverter.cs
- OutOfMemoryException.cs
- MissingFieldException.cs
- DateTimeSerializationSection.cs
- CodeObject.cs
- CannotUnloadAppDomainException.cs
- RuntimeVariablesExpression.cs
- ChannelOptions.cs
- XmlNamespaceMapping.cs
- ServiceErrorHandler.cs
- TreeNodeStyleCollection.cs
- RootBuilder.cs
- MenuBase.cs
- ImageAttributes.cs
- HwndStylusInputProvider.cs
- ChainedAsyncResult.cs
- InstanceKeyNotReadyException.cs
- TogglePattern.cs
- DataGridAddNewRow.cs
- NotifyCollectionChangedEventArgs.cs
- ConstructorBuilder.cs
- WindowsFormsHost.cs
- FixedPage.cs
- TempFiles.cs
- FastPropertyAccessor.cs
- precedingquery.cs
- IDReferencePropertyAttribute.cs
- BitmapFrameDecode.cs
- NetDataContractSerializer.cs
- KeyGestureValueSerializer.cs
- ComboBox.cs
- WorkflowServiceAttributesTypeConverter.cs
- PageEventArgs.cs
- AncestorChangedEventArgs.cs
- SubMenuStyleCollection.cs
- EventMappingSettingsCollection.cs
- SharedConnectionListener.cs
- StrictModeSecurityHeaderElementInferenceEngine.cs
- UserControlDocumentDesigner.cs