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
- httpRequest
Type: HttpRequestMessage
The HttpResponseMessage instance to encapsulate.