StringContent Class
Provides HTTP content based on a string.
System::Object
System.Net.Http::HttpContent
System.Net.Http::ByteArrayContent
System.Net.Http::StringContent
System.Net.Http::HttpContent
System.Net.Http::ByteArrayContent
System.Net.Http::StringContent
Namespace: System.Net.Http
Assembly: System.Net.Http (in System.Net.Http.dll)
The StringContent type exposes the following members.
| 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. |
| Name | Description | |
|---|---|---|
![]() | Headers | Gets the HTTP content headers as defined in RFC 2616. (Inherited from HttpContent.) |
| Name | Description | |
|---|---|---|
![]() | CopyToAsync(Stream) | Write the HTTP content to a stream as an asynchronous operation. (Inherited from HttpContent.) |
![]() | CopyToAsync(Stream, TransportContext) | Write the HTTP content to a stream as an asynchronous operation. (Inherited from HttpContent.) |
![]() | CreateContentReadStreamAsync | (Inherited from ByteArrayContent.) |
![]() | Dispose() | Releases the unmanaged resources and disposes of the managed resources used by the HttpContent. (Inherited from HttpContent.) |
![]() | Dispose(Boolean) | Releases the unmanaged resources used by the HttpContent and optionally disposes of the managed resources. (Inherited from HttpContent.) |
![]() | Equals | (Inherited from Object.) |
![]() | Finalize | (Inherited from Object.) |
![]() | GetHashCode | (Inherited from Object.) |
![]() | GetType | (Inherited from Object.) |
![]() | LoadIntoBufferAsync() | Serialize the HTTP content to a memory buffer as an asynchronous operation. (Inherited from HttpContent.) |
![]() | LoadIntoBufferAsync(Int64) | (Inherited from HttpContent.) |
![]() | MemberwiseClone | (Inherited from Object.) |
![]() | ReadAsByteArrayAsync | (Inherited from HttpContent.) |
![]() | ReadAsStreamAsync | (Inherited from HttpContent.) |
![]() | ReadAsStringAsync | (Inherited from HttpContent.) |
![]() | SerializeToStreamAsync | Serialize and write the byte array provided in the constructor to an HTTP content stream as an asynchronous operation. (Inherited from ByteArrayContent.) |
![]() | ToString | (Inherited from Object.) |
![]() | TryComputeLength | Determines whether a byte array has a valid length in bytes. (Inherited from ByteArrayContent.) |
Show:
