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
- TypeName.cs
- DES.cs
- Int32Converter.cs
- ExpanderAutomationPeer.cs
- dbdatarecord.cs
- TreeBuilder.cs
- BrowserCapabilitiesFactory.cs
- DataDesignUtil.cs
- ButtonColumn.cs
- RegexCharClass.cs
- RegistrationServices.cs
- ActionMessageFilterTable.cs
- HitTestResult.cs
- GradientStop.cs
- EntityKey.cs
- ObjectToModelValueConverter.cs
- SingleAnimationUsingKeyFrames.cs
- OdbcConnectionString.cs
- WebConfigManager.cs
- PerformanceCounterPermissionAttribute.cs
- DictationGrammar.cs
- RadioButtonStandardAdapter.cs
- ObjectConverter.cs
- ServiceManager.cs
- RoleManagerSection.cs
- SecurityElementBase.cs
- RadioButtonFlatAdapter.cs
- TextElementCollection.cs
- EnvironmentPermission.cs
- DelayedRegex.cs
- ELinqQueryState.cs
- DoWorkEventArgs.cs
- DataContractSerializer.cs
- DataGridDesigner.cs
- InsufficientMemoryException.cs
- StateElement.cs
- TimeEnumHelper.cs
- ListViewCancelEventArgs.cs
- RemotingAttributes.cs
- PropertyGridCommands.cs
- View.cs
- LongTypeConverter.cs
- EnterpriseServicesHelper.cs
- GridView.cs
- DataGridViewAccessibleObject.cs
- ConstructorExpr.cs
- XmlDocument.cs
- SqlRewriteScalarSubqueries.cs
- LockedActivityGlyph.cs
- FilterableData.cs
- RangeValidator.cs
- WebPartsSection.cs
- SystemDiagnosticsSection.cs
- ThousandthOfEmRealDoubles.cs
- IndexedDataBuffer.cs
- CodeSnippetExpression.cs
- FtpCachePolicyElement.cs
- TabControlAutomationPeer.cs
- UpdateTranslator.cs
- BinaryReader.cs
- SessionStateContainer.cs
- Triplet.cs
- Cursor.cs
- CatalogPartCollection.cs
- ProgramNode.cs
- OutOfProcStateClientManager.cs
- MsmqDiagnostics.cs
- Math.cs
- DataReaderContainer.cs
- Material.cs
- DbModificationCommandTree.cs
- EventHandlersStore.cs
- ParameterBuilder.cs
- StaticDataManager.cs
- TrackBarRenderer.cs
- Vector.cs
- XmlWriterTraceListener.cs
- VirtualDirectoryMappingCollection.cs
- UnhandledExceptionEventArgs.cs
- HttpRuntimeSection.cs
- CollectionDataContract.cs
- Splitter.cs
- EventProviderTraceListener.cs
- RefreshResponseInfo.cs
- EventLogSession.cs
- DocobjHost.cs
- WebPartDescriptionCollection.cs
- VectorCollectionConverter.cs
- ProviderManager.cs
- FileChangesMonitor.cs
- ToolStripItemDataObject.cs
- MSG.cs
- DynamicQueryStringParameter.cs
- HttpModuleCollection.cs
- BitmapMetadataEnumerator.cs
- LinkedDataMemberFieldEditor.cs
- RecognitionResult.cs
- CodeTypeOfExpression.cs
- DataColumnPropertyDescriptor.cs
- SqlCaseSimplifier.cs