Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Attachment.CreateAttachmentFromString Method

Creates an attachment from a string.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  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.
Top
Show:
© 2015 Microsoft