StringContent()

StringContent::StringContent(String) constructor

Constructs a new instance.

System::Net::Http::StringContent::StringContent(String content)

Arguments

ParameterTypeDescription
contentStringHTTP content.

StringContent::StringContent(String, System::SharedPtr<Text::Encoding>) constructor

Constructs a new instance.

System::Net::Http::StringContent::StringContent(String content, System::SharedPtr<Text::Encoding> encoding)

Arguments

ParameterTypeDescription
contentStringHTTP content.
encodingSystem::SharedPtr<Text::Encoding>The encoding of HTTP content.

StringContent::StringContent(String, System::SharedPtr<Text::Encoding>, String) constructor

Constructs a new instance.

System::Net::Http::StringContent::StringContent(String content, System::SharedPtr<Text::Encoding> encoding, String mediaType)

Arguments

ParameterTypeDescription
contentStringHTTP content.
encodingSystem::SharedPtr<Text::Encoding>The encoding of HTTP content.
mediaTypeStringThe MIME type.

See Also