Attachment::CreateAttachmentFromString Method (String^, ContentType^)
.NET Framework (current version)
Creates a mail attachment using the content from the specified string, and the specified ContentType.
Assembly: System (in System.dll)
public: static Attachment^ CreateAttachmentFromString( String^ content, ContentType^ contentType )
Parameters
- content
-
Type:
System::String^
A String that contains the content for this attachment.
- contentType
-
Type:
System.Net.Mime::ContentType^
A ContentType object that represents the Multipurpose Internet Mail Exchange (MIME) protocol Content-Type header to be used.
.NET Framework
Available since 2.0
Available since 2.0
Show: