itemAttachment 资源类型itemAttachment resource type

重要说明: Microsoft Graph 中 /beta 版本下的 API 是预览版,可能会发生变化。Important: APIs under the /beta version in Microsoft Graph are in preview and are subject to change. 不支持在生产应用程序中使用这些 API。Use of these APIs in production applications is not supported.

联系人、 事件或附加到另一个事件消息Outlook 任务发布的消息。A contact, event, or message that's attached to another event, message, Outlook task, or post.

派生自 附件Derived from attachment.


方法Method 返回类型Return Type 说明Description
GetGet itemAttachmentitemAttachment 读取 itemAttachment 对象的属性和关系。Read properties and relationships of itemAttachment object.
删除Delete None 删除 itemAttachment 对象。Delete itemAttachment object.


属性Property 类型Type 说明Description
contentTypecontentType StringString 附件的内容类型。The content type of the attachment.
idid StringString 附件 ID。The attachment ID.
isInlineisInline 布尔Boolean 如果附件是内联的(例如嵌入到项目正文中的图像),请设置为 true。Set to true if the attachment is inline, such as an embedded image within the body of the item.
lastModifiedDateTimelastModifiedDateTime DateTimeOffsetDateTimeOffset 上次修改附件的时间和日期。The last time and date that the attachment was modified.
namename StringString 附件的显示名称。The display name of the attachment.
大小size Int32Int32 附件大小,以字节为单位。The size in bytes of the attachment.


关系Relationship 类型Type 说明Description
item OutlookItemOutlookItem 附加的联系人、 消息或事件中。The attached contact, message or event. 导航属性。Navigation property.

JSON 表示形式JSON representation

下面是资源的 JSON 表示形式。Here is a JSON representation of the resource

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