AlternateView

AlternateView class

Represents the format to view a message.

The AlternateView type exposes the following members:

Constructors

NameDescription
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

NameDescription
content_streamGets or sets the content stream.
content_idGets or sets the content id.
headersGets headers collection of attachment.
content_typeGets or sets the type of the content.
transfer_encodingGets or sets the transfer encoding.
linked_resourcesGets the set of embedded resources referred to by this alternate view.
base_uriGets or sets the base URI.

Methods

NameDescription
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