
## AlternateView class

Represents the format to view a message.

The AlternateView type exposes the following members:
## Constructors
| Name | Description |
| :- | :- |
|AlternateView(file_name)|Initializes a new instance of the AlternateView class|
|AlternateView(file_name, media_type)|Initializes a new instance of the AlternateView class|
|AlternateView(file_name, content_type)|Initializes a new instance of the AlternateView class|
|AlternateView(content_stream)|Initializes a new instance of the AlternateView class|
|AlternateView(content_stream, media_type)|Initializes a new instance of the AlternateView class|
|AlternateView(content_stream, content_type)|Initializes a new instance of the AlternateView class|
## Properties
| Name | Description |
| :- | :- |
|content_stream|Gets or sets the content stream.|
|content_id|Gets or sets the content id.|
|headers|Gets headers collection of attachment.|
|content_type|Gets or sets the type of the content.|
|transfer_encoding|Gets or sets the transfer encoding.|
|linked_resources|Gets the set of embedded resources referred to by this alternate view.|
|base_uri|Gets or sets the base URI.|
## Methods
| Name | Description |
| :- | :- |
|save(stream)|  |
|save(file_name)|  |
|create_alternate_view_from_string(content)|  |
|create_alternate_view_from_string(content, content_encoding, media_type)|  |
|create_alternate_view_from_string(content, content_type)|  |
|create_alternate_view_from_string(content, content_type, transferencoding)|  |

### See Also

* namespace [aspose.email](/email/python-net/aspose.email/)
* assembly [Aspose.Email](/email/python-net/)

