itemAttachment 资源类型

命名空间:microsoft.graph

重要

Microsoft Graph /beta 版本下的 API 可能会发生更改。 不支持在生产应用程序中使用这些 API。 若要确定 API 是否在 v1.0 中可用,请使用 版本 选择器。

警告

Outlook 任务已弃用,并于 2022 年 8 月 10 日停止返回数据。 通过 Outlook 任务更新使用此功能的现有应用。

附加到用户 事件、 消息、 Outlook 任务或 帖子的联系人、事件或消息。

派生自 附件。

方法

方法 返回类型 说明
Get itemAttachment 读取 itemAttachment 对象的属性、关系或原始内容。
删除 无 删除 itemAttachment 对象。

属性

属性 类型 说明
contentType String 附件的内容类型。 在未显式设置时默认返回 null 。 可选。
id String 附件 ID。
isInline Boolean 如果附件是内联的(例如嵌入到项目正文中的图像),请设置为 true。
lastModifiedDateTime DateTimeOffset 上次修改附件的时间和日期。
name String 附件的显示名称。
大小 Int32 附件大小,以字节为单位。

关系

关系 类型 说明
项 OutlookItem 附加的联系人、消息或事件。 导航属性。

JSON 表示形式

以下 JSON 表示形式显示资源类型。

{
  "contentType": "string",
  "id": "string (identifier)",
  "isInline": true,
  "lastModifiedDateTime": "String (timestamp)",
  "name": "string",
  "size": 1024
}