AttachmentCreateAttachmentFromString Method (String, ContentType) |
Creates the attachment from string.
Namespace:
Aspose.Email
Assembly:
Aspose.Email (in Aspose.Email.dll) Version: 20.2
Syntax public static Attachment CreateAttachmentFromString(
string content,
ContentType contentType
)
Public Shared Function CreateAttachmentFromString (
content As String,
contentType As ContentType
) As Attachment
public:
static Attachment^ CreateAttachmentFromString(
String^ content,
ContentType^ contentType
)
static member CreateAttachmentFromString :
content : string *
contentType : ContentType -> Attachment
Parameters
- content
- Type: SystemString
A string that represents the content of attachment. - contentType
- Type: Aspose.Email.MimeContentType
The ContentType.
Return Value
Type:
AttachmentReturns created attachment
See Also