itemAttachment 资源类型itemAttachment resource type

重要

Microsoft Graph 中/beta的版本下的 api 可能会发生更改。APIs under the /beta version in Microsoft Graph 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.

方法Methods

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

属性Properties

属性Property 类型Type 说明Description
contentTypecontentType StringString 附件的内容类型。The content type of the attachment.
idid StringString 附件 ID。The attachment ID.
isInlineisInline BooleanBoolean 如果附件是内联的(例如嵌入到项目正文中的图像),请设置为 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.

关系Relationships

关系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
}