Create(subject: string, body: string, unicodeStrings: bool) | 创建一个新的 MapiMessage,使用给定的主题和正文,可选地使用 Unicode 字符串。 |
FromFile(path: string, strict: bool) | 从位于 path 的 .msg 文件加载 MapiMessage;strict 启用完整的结构验证。 |
FromStream(stream: Stream, strict: bool) | 从 stream 加载 MapiMessage;strict 启用完整的结构验证。 |
FromMsgDocument(document: MsgDocument) | 将已解析的 MsgDocument 包装在 MapiMessage 中。 |
LoadFromEml(path: string) | 通过内存 MIME 解析,将位于 path 的 EML 文件转换为 MapiMessage。 |
LoadFromEml(stream: Stream) | 通过内存 MIME 解析,将位于 path 的 EML 文件转换为 MapiMessage。 |
LoadFromEml(data: byte[]) | 通过内存 MIME 解析,将位于 path 的 EML 文件转换为 MapiMessage。 |
Dispose() | 释放此消息持有的非托管资源。 |
AddRecipient(emailAddress: string, displayName: string?, recipientType: int) | 添加一个收件人,使用给定的电子邮件地址、显示名称和类型(1 = To,2 = Cc,3 = Bcc)。 |
AddAttachment(filename: string, data: byte[], mimeType: string?, contentId: string?) | 通过文件名和二进制数据附加文件,可选地指定 MIME 类型和 Content-ID。 |
AddAttachment(filename: string, stream: Stream, mimeType: string?, contentId: string?) | 通过文件名和二进制数据附加文件,可选地指定 MIME 类型和 Content-ID。 |
AddEmbeddedMessageAttachment(message: MapiMessage, filename: string?, mimeType: string?) | 将另一个 MapiMessage 作为嵌入式消息附件附加。 |
SetProperty(propertyId: ushort, propertyType: ushort, value: object?, flags: uint) | 通过属性 ID、类型、值和标志设置原始 MAPI 属性。 |
GetPropertyValue(propertyId: ushort, propertyType: ushort?, decode: bool) | 按 ID(以及可选类型)检索 MAPI 属性的值;decode 控制字符串解码。 |
IterPropertyKeys() | 枚举所有已存储属性的 (propertyId, propertyType) 键对。 |
IterProperties() | 枚举此消息中存储的所有 MapiProperty 对象。 |
IterAttachmentsInfo() | 枚举附件元数据,而不加载完整的附件数据。 |
ToMsgDocument() | 将此 MapiMessage 转换为适用于 CFB 序列化的 MsgDocument。 |
Save() | 就地保存消息(针对最初从文件或流加载的消息)。 |
Save(path: string) | 就地保存消息(针对最初从文件或流加载的消息)。 |
Save(stream: Stream) | 将消息就地保存(适用于最初从文件或流加载的消息)。 |
SaveToEml() | 将消息就地保存(适用于最初从文件或流加载的消息)。 |
SaveToEml(path: string) | 将消息就地保存(适用于最初从文件或流加载的消息)。 |
SaveToEml(stream: Stream) | 将消息就地保存(适用于最初从文件或流加载的消息)。 |