Attachment Methods

The Attachment type exposes the following members.

  Name Description
Public method Static member CreateAttachmentFromString(String, ContentType) Creates a mail attachment using the content from the specified string, and the specified ContentType.
Public method Static member CreateAttachmentFromString(String, String) Creates a mail attachment using the content from the specified string, and the specified MIME content type name.
Public method Static member CreateAttachmentFromString(String, String, Encoding, String) Creates a mail attachment using the content from the specified string, the specified MIME content type name, character encoding, and MIME header information for the attachment.
Public method Dispose() Releases the resources used by the AttachmentBase. (Inherited from AttachmentBase.)
Protected method Dispose(Boolean) Releases the unmanaged resources used by the AttachmentBase and optionally releases the managed resources. (Inherited from AttachmentBase.)
Public method Equals(Object) Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft