Office.AttachmentDetailsCompose interface

表示项目上的附件。 仅限撰写模式。

对象数组 AttachmentDetailsComposegetAttachmentsAsync 方法返回。

注解

[ API set: Mailbox 1.8 ]

最低权限级别读取项

适用的 Outlook 模式:Compose

属性

attachmentType

获取一个值,该值指示附件的类型。

id

获取附件的索引。

isInline

获取一个值,该值指示附件在项目正文中而不是附件列表中是否显示为图像。

name

获取附件的名称。

size

获取以字节为单位的附件大小。

url

如果附件的类型为 MailboxEnums.AttachmentType.Cloud,则获取其 URL。

属性详细信息

attachmentType

获取一个值,该值指示附件的类型。

attachmentType: MailboxEnums.AttachmentType | string;

属性值

注解

重要说明

  • 在Outlook 网页版和新的 Outlook on Windows 中,本地保存的邮件或约会,然后使用拖放或“附加项目”选项进行附加, 类型Office.MailboxEnums.AttachmentType.File为 。 文件扩展名在 属性中 name 返回。 但是,使用 “转发为附件 ”选项附加的邮件或约会的类型 Office.MailboxEnums.AttachmentType.Item为 。 在这种情况下,不会在 属性中 name 返回扩展。

  • 在经典 Outlook on Windows 中,使用拖放、 附加文件作为附件转发 附加的邮件或约会的类型 Office.MailboxEnums.AttachmentType.Item为 。 属性中 name 不返回文件扩展名。

  • 在 Outlook on Mac 中,使用拖放、 附加项目转发作为附件附加 的邮件或约会的类型 Office.MailboxEnums.AttachmentType.File为 。 文件扩展名在 属性中 name 返回。

id

获取附件的索引。

id: string;

属性值

string

isInline

获取一个值,该值指示附件在项目正文中而不是附件列表中是否显示为图像。

isInline: boolean;

属性值

boolean

name

获取附件的名称。

name: string;

属性值

string

注解

重要说明

  • 类型的 Office.MailboxEnums.AttachmentType.Item 附件不会在 属性中 name 返回文件扩展名。

  • 在Outlook 网页版和新的 Outlook on Windows 中,本地保存的邮件或约会,然后使用拖放或“附加项目”选项进行附加, 类型Office.MailboxEnums.AttachmentType.File为 。 文件扩展名在 属性中 name 返回。 但是,使用 “转发为附件 ”选项附加的邮件或约会的类型 Office.MailboxEnums.AttachmentType.Item为 。 在这种情况下,不会在 属性中 name 返回扩展。

  • 在经典 Outlook on Windows 中,使用拖放、 附加文件作为附件转发 附加的邮件或约会的类型 Office.MailboxEnums.AttachmentType.Item为 。 属性中 name 不返回文件扩展名。

  • 在 Outlook on Mac 中,使用拖放、 附加项目转发作为附件附加 的邮件或约会的类型 Office.MailboxEnums.AttachmentType.File为 。 文件扩展名在 属性中 name 返回。

size

获取以字节为单位的附件大小。

size: number;

属性值

number

url

如果附件的类型为 MailboxEnums.AttachmentType.Cloud,则获取其 URL。

url?: string;

属性值

string