itemAttachment 资源类型itemAttachment resource type

命名空间:microsoft.graphNamespace: microsoft.graph

附加到用户事件邮件帖子的联系人、事件或邮件。A contact, event, or message that's attached to a user event, message, or post.

派生自 附件Derived from attachment.


方法Method 返回类型Return Type 说明Description
GetGet itemAttachmentitemAttachment 读取 itemAttachment 对象的属性、关系或原始内容。Read the properties, relationships, or raw contents of an 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 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.


关系Relationship 类型Type 说明Description
item OutlookItemOutlookItem 附加的消息或事件。导航属性。The attached 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,
  "item": { "@odata.type": "microsoft.graph.outlookItem" }