HttpMessageContent Constructor
Namespace: System.Net.Http
Assembly: System.Net.Http.Formatting (in System.Net.Http.Formatting.dll)
Overload List
Name | Description | |
---|---|---|
HttpMessageContent(HttpRequestMessage) | Initializes a new instance of the HttpMessageContent class encapsulating an HttpRequestMessage. |
|
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
httpRequest
Type: System.Net.Http.HttpRequestMessageThe HttpResponseMessage instance to encapsulate.
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
httpResponse
Type: System.Net.Http.HttpResponseMessageThe HttpResponseMessage instance to encapsulate.
Return to top