System.ServiceModel 4.0.0.0 System.Object System.ServiceModel.Channels.IMessageProperty

This is a general-purpose class that gives you direct access to the HTTP response information, which could be used for encapsulation of HTTP-specific information. One use of this class is to support services implemented in accordance with the Representational State Transfer (REST) architecture.

This class enables you to support the following scenarios:

Controls whether an entity body is transmitted.

Allows HTTP header (key, value) pairs to be set for each response.

Varies the status code and status description used for each response.

This class can be used by and related classes.

Provides access to the HTTP response in order to access and respond to the additional information made available for requests over the HTTP protocol.

- Constructor
  4.0.0.0

  This constructor initializes the object as follows:

  = .

  is set to null.

  = false.

  Initializes a new instance of the class.

- Property
  4.0.0.0
  System.Net.WebHeaderCollection To be added. To be added.

  Gets the HTTP headers from the HTTP response.

- Property
  4.0.0.0
  System.String To be added. To be added.

  Gets the name of the message property associated with the class.

- Property
  4.0.0.0
  System.Net.HttpStatusCode To be added.

  This property has one of the values in the enumeration.

  Gets or sets the status code of the current HTTP response to which this property is attached.

- Property
  4.0.0.0
  System.String To be added.

  This property provides a user-friendly description of the returned status code.

  Gets or sets the description of the status code of the current HTTP response to which this property is attached.

- Property
  4.0.0.0
  System.Boolean To be added.

  This property is used for empty message responses, for example, a service that accepts a POST request and returns a response that contains no message body with StatusCode = 200 and StatusDescription = OK. The associated with this response has this property set to true.

  Gets or sets a value that indicates whether the body of the message is ignored and an empty message is sent.

- Method
  4.0.0.0
  System.ServiceModel.Channels.IMessageProperty To be added.

  Creates a new copy of the current instance.

  A newly created copy of type of the current instance.