
## CreateAlternateViewFromString (1 of 5) {#createalternateviewfromstring_1}

Creates a AlternateView of using the content specified in a string.

**Returns:** An AlternateView object that represents an alternate view.

```cpp
CreateAlternateViewFromString(System::String content)
```

| Parameter | Description |
| --- | --- |
| content | The string that contains the content. |

---

## CreateAlternateViewFromString (2 of 5) {#createalternateviewfromstring_2}

Creates a AlternateView of using the content specified in a string.

**Returns:** An AlternateView object that represents an alternate view.

```cpp
CreateAlternateViewFromString(System::String content, System::SharedPtr < Aspose::Email::Mime::ContentType > contentType)
```

| Parameter | Description |
| --- | --- |
| content | The string that contains the content. |
| contentType | Content type. |

---

## CreateAlternateViewFromString (3 of 5) {#createalternateviewfromstring_3}

Creates a AlternateView of using the content specified in a string.

**Returns:** An AlternateView object that represents an alternate view.

```cpp
CreateAlternateViewFromString(System::String content, System::SharedPtr < Aspose::Email::Mime::ContentType > contentType, Aspose::Email::Mime::TransferEncoding transferencoding)
```

| Parameter | Description |
| --- | --- |
| content | The string that contains the content. |
| contentType | Content type. |
| transferencoding | The transfer encoding. |

---

## CreateAlternateViewFromString (4 of 5) {#createalternateviewfromstring_4}

**Returns:** static System::SharedPtr < AlternateView > Aspose::Email::

```cpp
CreateAlternateViewFromString(System::String content, System::SharedPtr < System::Text::Encoding > contentEncoding, System::SharedPtr < Aspose::Email::Mime::ContentType > contentType)
```

| Parameter | Description |
| --- | --- |
| content |  |
| contentEncoding |  |
| contentType |  |

---

## CreateAlternateViewFromString (5 of 5) {#createalternateviewfromstring_5}

Creates a AlternateView of using the content specified in a string.

**Returns:** An AlternateView object that represents an alternate view.

```cpp
CreateAlternateViewFromString(System::String content, System::SharedPtr < System::Text::Encoding > contentEncoding, System::String mediaType)
```

| Parameter | Description |
| --- | --- |
| content | The string that contains the content. |
| contentEncoding | The content encoding. |
| mediaType | Internet media type. |

