LinkedResource

LinkedResource class

Represents an embedded resource in a message.

The LinkedResource type exposes the following members:

Constructors

NameDescription
LinkedResource(file_name)Initializes a new instance of the LinkedResource class
LinkedResource(file_name, media_type)Initializes a new instance of the LinkedResource class
LinkedResource(file_name, content_type)Initializes a new instance of the LinkedResource class
LinkedResource(content_stream)Initializes a new instance of the LinkedResource class
LinkedResource(content_stream, media_type)Initializes a new instance of the LinkedResource class
LinkedResource(content_stream, content_type)Initializes a new instance of the LinkedResource 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.
content_linkGets or sets a URI that the resource must match.
content_dispositionGets Content-Disposition header

Methods

NameDescription
save(stream)
save(file_name)
create_linked_resource_from_string(content)
create_linked_resource_from_string(content, content_encoding, media_type)
create_linked_resource_from_string(content, content_type)

See Also