Partager via


HttpRequestMessage.Content Property

Gets or sets the contents of the HTTP message.

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

Syntax

'Declaration
Public Property Content As HttpContent 
    Get 
    Set
'Usage
Dim instance As HttpRequestMessage 
Dim value As HttpContent 

value = instance.Content

instance.Content = value
public HttpContent Content { get; set; }
public:
property HttpContent^ Content {
    HttpContent^ get ();
    void set (HttpContent^ value);
}
member Content : HttpContent with get, set
function get Content () : HttpContent 
function set Content (value : HttpContent)

Property Value

Type: System.Net.Http.HttpContent

See Also

Reference

HttpRequestMessage Class

System.Net.Http Namespace