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