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
- InheritanceContextHelper.cs
- EventSinkHelperWriter.cs
- CodeSubDirectory.cs
- ellipse.cs
- TypeForwardedToAttribute.cs
- ChooseAction.cs
- Column.cs
- FragmentQuery.cs
- DefaultSerializationProviderAttribute.cs
- ListViewTableCell.cs
- CompletionBookmark.cs
- baseaxisquery.cs
- WebServiceHandlerFactory.cs
- StopStoryboard.cs
- ConfigurationStrings.cs
- SiteMapNodeItemEventArgs.cs
- WindowsAltTab.cs
- FileLogRecord.cs
- KoreanCalendar.cs
- ZipIOCentralDirectoryBlock.cs
- StructuredType.cs
- SqlDataSourceAdvancedOptionsForm.cs
- SqlConnectionFactory.cs
- RouteUrlExpressionBuilder.cs
- InputReferenceExpression.cs
- BaseAsyncResult.cs
- PrintDocument.cs
- ProxySimple.cs
- XmlSignatureManifest.cs
- Composition.cs
- ListBindableAttribute.cs
- DebuggerAttributes.cs
- ListViewHitTestInfo.cs
- XmlValidatingReader.cs
- ObjectAnimationBase.cs
- XmlHierarchicalEnumerable.cs
- TextTrailingWordEllipsis.cs
- PrintingPermissionAttribute.cs
- ExpressionWriter.cs
- InteropBitmapSource.cs
- HtmlTable.cs
- CqlLexer.cs
- OletxCommittableTransaction.cs
- TableLayoutSettingsTypeConverter.cs
- _OverlappedAsyncResult.cs
- SocketPermission.cs
- AccessDataSource.cs
- BitStack.cs
- SmtpDigestAuthenticationModule.cs
- DocumentSequenceHighlightLayer.cs
- SafeWaitHandle.cs
- FillErrorEventArgs.cs
- IArgumentProvider.cs
- OracleCommandSet.cs
- EditorZone.cs
- InlineUIContainer.cs
- FixUpCollection.cs
- WinEventQueueItem.cs
- AnnotationAuthorChangedEventArgs.cs
- ProfileEventArgs.cs
- DetailsViewUpdateEventArgs.cs
- ipaddressinformationcollection.cs
- ClassicBorderDecorator.cs
- BitmapFrameDecode.cs
- GridViewCancelEditEventArgs.cs
- TraceContextRecord.cs
- X509AudioLogo.cs
- XmlnsCache.cs
- InvokerUtil.cs
- TextEditorSpelling.cs
- RoleService.cs
- UserControlCodeDomTreeGenerator.cs
- InkPresenter.cs
- input.cs
- MachineKeyConverter.cs
- Floater.cs
- Point4DConverter.cs
- SimpleWorkerRequest.cs
- TouchesCapturedWithinProperty.cs
- Separator.cs
- ListViewDeleteEventArgs.cs
- CharEnumerator.cs
- ClientTargetSection.cs
- ThrowHelper.cs
- TableChangeProcessor.cs
- VisualStyleRenderer.cs
- PerformanceCounterManager.cs
- ScriptReference.cs
- LoadedOrUnloadedOperation.cs
- InvokeMethodActivityDesigner.cs
- BrowserDefinitionCollection.cs
- EventSourceCreationData.cs
- EdmProperty.cs
- SqlDelegatedTransaction.cs
- PrimitiveXmlSerializers.cs
- OSEnvironmentHelper.cs
- COM2IPerPropertyBrowsingHandler.cs
- DataPagerField.cs
- SafeSystemMetrics.cs
- EntityDataSourceChangingEventArgs.cs