AttachmentCreateAttachmentFromString Method (String, 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
)
Public Shared Function CreateAttachmentFromString (
content As String,
name As String
) As Attachment
public:
static Attachment^ CreateAttachmentFromString(
String^ content,
String^ name
)
static member CreateAttachmentFromString :
content : string *
name : string -> Attachment
Parameters
- content
- Type: SystemString
A string that represents the content of attachment. - name
- Type: SystemString
The attachment name.
Return Value
Type:
AttachmentReturns created attachment
See Also