AlternateView.CreateAlternateViewFromString
Contents
[
Hide
]CreateAlternateViewFromString(string)
Creates a plain-text view from a string.
public static AlternateView CreateAlternateViewFromString(string content)
| Parameter | Type | Description |
|---|---|---|
| content | String | The content of the view. |
Return Value
The new alternate view.
See Also
- class AlternateView
- namespace Aspose.Email
- assembly Aspose.Email
CreateAlternateViewFromString(string, Encoding, string)
Creates a view from a string with the specified encoding and media type.
public static AlternateView CreateAlternateViewFromString(string content, Encoding contentEncoding,
string mediaType)
| Parameter | Type | Description |
|---|---|---|
| content | String | The content of the view. |
| contentEncoding | Encoding | The character encoding of the content. |
| mediaType | String | The MIME media type of the content, such as text/html. |
Return Value
The new alternate view.
See Also
- class AlternateView
- namespace Aspose.Email
- assembly Aspose.Email
CreateAlternateViewFromString(string, ContentType)
Creates a view from a string with the specified content type.
public static AlternateView CreateAlternateViewFromString(string content, ContentType contentType)
| Parameter | Type | Description |
|---|---|---|
| content | String | The content of the view. |
| contentType | ContentType | The content type of the view, with its media type and character set. |
Return Value
The new alternate view.
See Also
- class ContentType
- class AlternateView
- namespace Aspose.Email
- assembly Aspose.Email
CreateAlternateViewFromString(string, ContentType, TransferEncoding)
Creates a view from a string with the specified content type and transfer encoding.
public static AlternateView CreateAlternateViewFromString(string content, ContentType contentType,
TransferEncoding transferencoding)
| Parameter | Type | Description |
|---|---|---|
| content | String | The content of the view. |
| contentType | ContentType | The content type of the view, with its media type and character set. |
| transferencoding | TransferEncoding | The transfer encoding of the content, such as Base64 or quoted-printable. |
Return Value
The new alternate view.
See Also
- class ContentType
- enum TransferEncoding
- class AlternateView
- namespace Aspose.Email
- assembly Aspose.Email