StringContent Class
StringContent class
Represents content based on a String.
public class StringContent : ByteArrayContent
Constructors
Name | Description |
---|
StringContent(String) | Initializes a new instance of the StringContent class. |
StringContent(String, Encoding) | Initializes a new instance of the StringContent class. |
StringContent(String, Encoding, String) | Initializes a new instance of the StringContent class. |
Properties
Name | Description |
---|
getHeaders Gets the HTTP content headers. | |
Methods
Name | Description |
---|
dispose() | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. |
readAsByteArray() | Serialize the HTTP content and return a byte array that represents the content. |
readAsStream() | Serialize the HTTP content and return a stream that represents the content. |
readAsString() | Serialize the HTTP content and return a String that represents the content. |
See Also