HttpRequestMessage<T> Constructor
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Initializes a new instance of the <see cref="T:System.Net.Http.HttpRequestMessage`1" /> class.
Namespace: System.Net.Http
Assembly: System.Net.Http.Formatting (in System.Net.Http.Formatting.dll)
Syntax
'Declaration
Public Sub New
public HttpRequestMessage()
public:
HttpRequestMessage()
new : unit -> HttpRequestMessage
public function HttpRequestMessage()
Remarks
This constructor sets Content to contain an instance of ObjectContent containing the default value for <typeparamref name="T" />.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.