
## StringContent class

Represents content based on a string.



**Inheritance:** [`StringContent`](/svg/python-net/aspose.svg.net/stringcontent) → 
[`ByteArrayContent`](/svg/python-net/aspose.svg.net/bytearraycontent) → 
[`Content`](/svg/python-net/aspose.svg.net/content)



The StringContent type exposes the following members:

### Constructors
| Constructor | Description |
| :- | :- |
| [__init__](/svg/python-net/aspose.svg.net/stringcontent/__init__/#str) | Initializes a new instance of the [`StringContent`](/svg/python-net/aspose.svg.net/stringcontent) class. |
| [__init__](/svg/python-net/aspose.svg.net/stringcontent/__init__/#str-System.Text.Encoding) | Initializes a new instance of the [`StringContent`](/svg/python-net/aspose.svg.net/stringcontent) class. |
| [__init__](/svg/python-net/aspose.svg.net/stringcontent/__init__/#str-System.Text.Encoding-str) | Initializes a new instance of the [`StringContent`](/svg/python-net/aspose.svg.net/stringcontent) class. |


### Properties
| Property | Description |
| :- | :- |
| [headers](/svg/python-net/aspose.svg.net/stringcontent/headers) | Gets the HTTP content headers. |


### Methods
| Method | Description |
| :- | :- |
| [read_as_stream](/svg/python-net/aspose.svg.net/stringcontent/read_as_stream/#) | Serialize the HTTP content and return a stream that represents the content. |
| [read_as_byte_array](/svg/python-net/aspose.svg.net/stringcontent/read_as_byte_array/#) | Serialize the HTTP content and return a byte array that represents the content. |
| [read_as_string](/svg/python-net/aspose.svg.net/stringcontent/read_as_string/#) | Serialize the HTTP content and return a string that represents the content. |



### See Also
* module [`aspose.svg.net`](..)
* class [`ByteArrayContent`](/svg/python-net/aspose.svg.net/bytearraycontent)
* class [`Content`](/svg/python-net/aspose.svg.net/content)
* class [`StringContent`](/svg/python-net/aspose.svg.net/stringcontent)
