Office.AttachmentDetailsCompose interface
表示项目上的附件。 仅限撰写模式。
对象数组 AttachmentDetailsCompose
由 getAttachmentsAsync
方法返回。
属性
attachment |
获取一个值,该值指示附件的类型。 |
id | 获取附件的索引。 |
is |
获取一个值,该值指示附件在项目正文中而不是附件列表中是否显示为图像。 |
name | 获取附件的名称。 |
size | 获取以字节为单位的附件大小。 |
url | 如果附件的类型为 |
属性详细信息
attachmentType
获取一个值,该值指示附件的类型。
attachmentType: MailboxEnums.AttachmentType | string;
属性值
Office.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