StringContent

StringContent(string)

Initializes a new instance of the StringContent class.

public StringContent(string content)
ParameterTypeDescription
contentStringThe content.

See Also


StringContent(string, Encoding)

Initializes a new instance of the StringContent class.

public StringContent(string content, Encoding encoding)
ParameterTypeDescription
contentStringThe content.
encodingEncodingThe encoding.

See Also


StringContent(string, Encoding, string)

Initializes a new instance of the StringContent class.

public StringContent(string content, Encoding encoding, string mediaType)
ParameterTypeDescription
contentStringThe content.
encodingEncodingThe encoding.
mediaTypeStringType of the media.

See Also