Share via


HttpMessageContent Constructor ()

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

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

Syntax

'Declaration
Public Sub New ( _
    httpRequest As HttpRequestMessage _
)
'Usage
Dim httpRequest As HttpRequestMessage

Dim instance As New HttpMessageContent(httpRequest)
public HttpMessageContent(
    HttpRequestMessage httpRequest
)
public:
HttpMessageContent(
    HttpRequestMessage^ httpRequest
)
new : 
        httpRequest:HttpRequestMessage -> HttpMessageContent
public function HttpMessageContent(
    httpRequest : HttpRequestMessage
)

Parameters

See Also

Reference

HttpMessageContent Class

HttpMessageContent Overload

System.Net.Http Namespace