CreateAttachmentFromString
CreateAttachmentFromString(string, string)
从字符串创建附件。
public static Attachment CreateAttachmentFromString(string content, string name)
| 范围 | 类型 | 描述 |
|---|---|---|
| content | String | 表示附件内容的字符串。 |
| name | String | 附件名称。 |
返回值
返回创建的附件
也可以看看
- class Attachment
- 命名空间 Aspose.Email
- 部件 Aspose.Email
CreateAttachmentFromString(string, string, Encoding, string)
从字符串创建附件。
public static Attachment CreateAttachmentFromString(string content, string name,
Encoding contentEncoding, string mediaType)
| 范围 | 类型 | 描述 |
|---|---|---|
| content | String | 表示附件内容的字符串。 |
| name | String | 附件名称。 |
| contentEncoding | Encoding | 内容编码。 |
| mediaType | String | 媒体类型名称 |
返回值
返回创建的附件
也可以看看
- class Attachment
- 命名空间 Aspose.Email
- 部件 Aspose.Email
CreateAttachmentFromString(string, ContentType)
从字符串创建附件。
public static Attachment CreateAttachmentFromString(string content, ContentType contentType)
| 范围 | 类型 | 描述 |
|---|---|---|
| content | String | 表示附件内容的字符串。 |
| contentType | ContentType | 这ContentType. |
返回值
返回创建的附件
也可以看看
- class ContentType
- class Attachment
- 命名空间 Aspose.Email
- 部件 Aspose.Email