AttachmentCreateAttachmentFromString Method (String, String, Encoding, String) |
Creates the attachment from string.
Namespace:
Aspose.Email
Assembly:
Aspose.Email (in Aspose.Email.dll) Version: 20.2
Syntaxpublic static Attachment CreateAttachmentFromString(
string content,
string name,
Encoding contentEncoding,
string mediaType
)
Public Shared Function CreateAttachmentFromString (
content As String,
name As String,
contentEncoding As Encoding,
mediaType As String
) As Attachment
public:
static Attachment^ CreateAttachmentFromString(
String^ content,
String^ name,
Encoding^ contentEncoding,
String^ mediaType
)
static member CreateAttachmentFromString :
content : string *
name : string *
contentEncoding : Encoding *
mediaType : string -> Attachment
Parameters
- content
- Type: SystemString
A string that represents the content of attachment. - name
- Type: SystemString
The attachment name. - contentEncoding
- Type: System.TextEncoding
The content encoding. - mediaType
- Type: SystemString
The media type name
Return Value
Type:
AttachmentReturns created attachment
See Also