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
- TopClause.cs
- MemberAccessException.cs
- NegatedConstant.cs
- WindowsPrincipal.cs
- HtmlElementErrorEventArgs.cs
- ReflectTypeDescriptionProvider.cs
- PeerObject.cs
- FocusWithinProperty.cs
- ListView.cs
- SchemaImporterExtensionElement.cs
- DataGridItem.cs
- LogicalExpr.cs
- SemaphoreFullException.cs
- WebPartActionVerb.cs
- ExtendLockCommand.cs
- _DisconnectOverlappedAsyncResult.cs
- WindowsFont.cs
- OciHandle.cs
- XmlSerializerNamespaces.cs
- Rule.cs
- GridViewDeleteEventArgs.cs
- CollectionTypeElement.cs
- TraceUtility.cs
- SpeechRecognitionEngine.cs
- HMACSHA384.cs
- MissingSatelliteAssemblyException.cs
- BulletChrome.cs
- WorkflowService.cs
- DotAtomReader.cs
- HttpBufferlessInputStream.cs
- WindowInteractionStateTracker.cs
- XamlDesignerSerializationManager.cs
- FigureParagraph.cs
- ValueQuery.cs
- MetadataArtifactLoaderResource.cs
- RTTypeWrapper.cs
- InputDevice.cs
- X509ScopedServiceCertificateElement.cs
- TextPenaltyModule.cs
- PrinterResolution.cs
- _Events.cs
- SQLGuid.cs
- AppDomainFactory.cs
- DataControlReference.cs
- TextEditorLists.cs
- SqlConnectionFactory.cs
- PeerCollaborationPermission.cs
- InkCollectionBehavior.cs
- TextParaClient.cs
- CommandHelper.cs
- CodeArgumentReferenceExpression.cs
- PcmConverter.cs
- StrokeNodeOperations.cs
- Win32.cs
- TableProviderWrapper.cs
- TabItemWrapperAutomationPeer.cs
- PropertyMetadata.cs
- ColumnTypeConverter.cs
- PartEditor.cs
- CipherData.cs
- XmlnsDictionary.cs
- TextEditorSelection.cs
- PathHelper.cs
- SqlBuffer.cs
- XmlDigitalSignatureProcessor.cs
- SwitchElementsCollection.cs
- PropertyDescriptor.cs
- RowUpdatedEventArgs.cs
- GeneralTransform3DGroup.cs
- PieceDirectory.cs
- AppSettingsReader.cs
- CodeTypeReference.cs
- TextTreeTextNode.cs
- PathFigureCollectionValueSerializer.cs
- LocalizedNameDescriptionPair.cs
- DbParameterHelper.cs
- WebUtil.cs
- PerformanceCounterPermissionEntry.cs
- ReferenceConverter.cs
- HitTestParameters3D.cs
- SafeArrayRankMismatchException.cs
- TransportDefaults.cs
- ToolStripItemCollection.cs
- safemediahandle.cs
- DateTimeFormatInfoScanner.cs
- DbConnectionPoolGroup.cs
- AuthenticateEventArgs.cs
- DataGridViewCellLinkedList.cs
- SchemaTableColumn.cs
- CodeExporter.cs
- StrokeFIndices.cs
- ApplicationDirectory.cs
- SiteOfOriginContainer.cs
- DiagnosticTraceSource.cs
- ListDictionaryInternal.cs
- HijriCalendar.cs
- StylusEventArgs.cs
- NameValueFileSectionHandler.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- BaseTemplateParser.cs