命名空间:microsoft.graph
表示附加到 todoTask 的文件,例如文本文件或 Word 文档。
在任务上创建文件附件时,包括 "@odata.type": "#microsoft.graph.taskFileAttachment" 和 属性 名称和contentBytes。
继承自 attachmentBase。
方法
| 方法 | 返回类型 | Description |
|---|---|---|
| List | taskFileAttachment 集合 | 获取 taskFileAttachment 对象及其属性的列表。 |
| 附加小文件 | taskFileAttachment 集合 | 将新的 taskFileAttachment 对象添加到 todoTask。 |
| 附加所有文件大小 | taskFileAttachment 集合 | 创建上传会话,以迭代方式将文件的范围作为附件上传到 todoTask。 |
| Get | taskFileAttachment | 读取 taskFileAttachment 对象的属性和关系。 |
| 删除 | None | 删除 taskFileAttachment 对象。 |
属性
| 属性 | 类型 | 说明 |
|---|---|---|
| contentBytes | Binary | 文件的 Base64 编码内容。 |
| contentType | String | 附件的内容类型。 继承自 attachmentBase。 |
| id | String | 附件的 ID。 继承自 entity。 |
| lastModifiedDateTime | DateTimeOffset | 上次修改附件的日期和时间。 继承自 attachmentBase。 |
| name | String | 表示嵌入附件的图标下显示的文本的名称。 这不必是实际的文件名。 继承自 attachmentBase。 |
| size | Int32 | 附件大小,以字节为单位。 继承自 attachmentBase。 |
关系
无。
JSON 表示形式
以下 JSON 表示形式显示了资源类型。
{
"@odata.type": "#microsoft.graph.taskFileAttachment",
"contentBytes": "Binary",
"contentType": "String",
"id": "String (identifier)",
"lastModifiedDateTime": "String (timestamp)",
"name": "String",
"size": "Int32"
}