Share via


HttpMessageContent Constructor

 

Namespace:   System.Net.Http
Assembly:  System.Net.Http.Formatting (in System.Net.Http.Formatting.dll)

Overload List

Name Description
System_CAPS_pubmethod HttpMessageContent(HttpRequestMessage)

Initializes a new instance of the HttpMessageContent class encapsulating an HttpRequestMessage.

System_CAPS_pubmethod HttpMessageContent(HttpResponseMessage)

Initializes a new instance of the HttpMessageContent class encapsulating an HttpResponseMessage.

See Also

HttpMessageContent Class
System.Net.Http Namespace

Return to top

HttpMessageContent Constructor (HttpRequestMessage)

Initializes a new instance of the HttpMessageContent class encapsulating an HttpRequestMessage.

Syntax

public HttpMessageContent(
    HttpRequestMessage httpRequest
)
public:
HttpMessageContent(
    HttpRequestMessage^ httpRequest
)
new : 
        httpRequest:HttpRequestMessage -> HttpMessageContent
Public Sub New (
    httpRequest As HttpRequestMessage
)

Parameters

Return to top

HttpMessageContent Constructor (HttpResponseMessage)

Initializes a new instance of the HttpMessageContent class encapsulating an HttpResponseMessage.

Syntax

public HttpMessageContent(
    HttpResponseMessage httpResponse
)
public:
HttpMessageContent(
    HttpResponseMessage^ httpResponse
)
new : 
        httpResponse:HttpResponseMessage -> HttpMessageContent
Public Sub New (
    httpResponse As HttpResponseMessage
)

Parameters

Return to top