CreateAttachmentFromString Method

Attachment.CreateAttachmentFromString Method

 

Creates an attachment from a string.

Namespace:   System.Net.Mail
Assembly:  System (in System.dll)

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticCreateAttachmentFromString(String, ContentType)

Creates a mail attachment using the content from the specified string, and the specified ContentType.

System_CAPS_pubmethodSystem_CAPS_staticCreateAttachmentFromString(String, String)

Creates a mail attachment using the content from the specified string, and the specified MIME content type name.

System_CAPS_pubmethodSystem_CAPS_staticCreateAttachmentFromString(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.

Return to top
Show:
© 2016 Microsoft