Attachment.CreateAttachmentFromString
Contents
[
Hide
]CreateAttachmentFromString(string, string)
Creates the attachment from string.
public static Attachment CreateAttachmentFromString(string content, string name)
Parameter | Type | Description |
---|---|---|
content | String | A string that represents the content of attachment. |
name | String | The attachment name. |
Return Value
Returns created attachment
See Also
- class Attachment
- namespace Aspose.Email
- assembly Aspose.Email
CreateAttachmentFromString(string, string, Encoding, string)
Creates the attachment from string.
public static Attachment CreateAttachmentFromString(string content, string name,
Encoding contentEncoding, string mediaType)
Parameter | Type | Description |
---|---|---|
content | String | A string that represents the content of attachment. |
name | String | The attachment name. |
contentEncoding | Encoding | The content encoding. |
mediaType | String | The media type name |
Return Value
Returns created attachment
See Also
- class Attachment
- namespace Aspose.Email
- assembly Aspose.Email
CreateAttachmentFromString(string, ContentType)
Creates the attachment from string.
public static Attachment CreateAttachmentFromString(string content, ContentType contentType)
Parameter | Type | Description |
---|---|---|
content | String | A string that represents the content of attachment. |
contentType | ContentType | The ContentType . |
Return Value
Returns created attachment
See Also
- class ContentType
- class Attachment
- namespace Aspose.Email
- assembly Aspose.Email