System::Net::Http::StringContent class

StringContent class

Represents HTTP content as a string. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument.

class StringContent : public System::Net::Http::ByteArrayContent

Methods

MethodDescription
StringContent(String)RTTI information.
StringContent(String, System::SharedPtr<Text::Encoding>)Constructs a new instance.
StringContent(String, System::SharedPtr<Text::Encoding>, String)Constructs a new instance.

Fields

FieldDescription
static DefaultStringEncodingThe default encoding.
static MaxBufferSizeThe maximum number of bytes.

See Also