Udostępnij za pośrednictwem


HttpResponseMessage.Content Property

Definition

Gets or sets the content of the HTTP response message on the HttpResponseMessage object.

public:
 property IHttpContent ^ Content { IHttpContent ^ get(); void set(IHttpContent ^ value); };
IHttpContent Content();

void Content(IHttpContent value);
public IHttpContent Content { get; set; }
var iHttpContent = httpResponseMessage.content;
httpResponseMessage.content = iHttpContent;
Public Property Content As IHttpContent

Property Value

The content of the HTTP response message on the HttpResponseMessage object.

Remarks

The content of an HTTP response message corresponds to the entity body defined in RFC 2616.

A number of classes and an interface can be used for HTTP content. These include the following.

Applies to