referenceAttachment 资源类型referenceAttachment resource type

到 OneDrive for Business 云驱动器或其他支持的存储位置上的文件(例如文本文件或 Word 文档)的链接,附加到事件、邮件或帖子中。A link to a file (such as a text file or Word document) on a OneDrive for Business cloud drive or other supported storage locations, attached to an event, message, or post.

派生自 附件Derived from attachment.


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


属性Property 类型Type 说明Description
contentTypecontentType StringString 附件的内容类型。The content type of the attachment.
idid StringString 附件 ID。只读。The attachment ID. Read-only.
isInlineisInline 布尔Boolean 如果附件显示为内嵌在嵌入对象的正文中,则设置为 true。Set to true if the attachment appears inline in the body of the embedding object.
lastModifiedDateTimelastModifiedDateTime DateTimeOffsetDateTimeOffset 上次修改附件的日期和时间。时间戳类型表示使用 ISO 8601 格式的日期和时间信息,并且始终处于 UTC 时间。例如,2014 年 1 月 1 日午夜 UTC 如下所示:'2014-01-01T00:00:00Z'The date and time when the attachment was last modified. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'
名称name StringString 显示在用于表示嵌入附件的图标下方的文本。这不必是实际的文件名。The text that is displayed below the icon representing the embedded attachment. This does not need to be the actual file name.
sizesize Int32Int32 存储在邮件附件中的元数据大小(以字节为单位)。The size of the metadata that is stored on the message for the attachment in bytes. 此值不表示实际文件的大小。This value does not indicate the size of the actual file.



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