The Attachment type exposes the following members.

Methods

  NameDescription
CreateHtmlAttachment
Creates an HTML attachment.
CreateImageAttachment
Creates an image attachment with a mime-type compatible with its internal representation.
CreateObjectAsXmlAttachment
Creates XML attachment with mime-type Xml by serializing an object.
CreatePlainTextAttachment
Creates a plain text attachment.
CreateVideoAttachment
Creates an video attachment with a mime-type compatible with its internal representation.
CreateXHtmlAttachment
Creates an XHTML attachment.
CreateXmlAttachment
Creates an XML attachment.
Equals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Finalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
FromAttachmentData
Recovers the attachment information from serializable attachment data.
GetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
GetType
Gets the Type of the current instance.
(Inherited from Object.)
MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Normalize
Obtains a normalized copy of the object or the original instance if it is already normalized.
ToAttachmentData
Generates serializable attachment data from an attachment.
ToString
Returns a String that represents the current Object.
(Inherited from Object.)

Extension Methods

  NameDescription
FormatOverloaded.

Properties

  NameDescription
ContentType
Gets the content type of the attachment specified as a MIME type, not null. for definitions of common supported MIME types.
Name
Gets the name of the attachment, not null.

See Also