Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Namespace: microsoft.graph
Represents a file, such as a text file or Word document, attached to a todoTask.
When you create a file attachment on a task, include "@odata.type": "#microsoft.graph.taskFileAttachment" and the properties name and contentBytes.
Inherits from attachmentBase.
Methods
| Method | Return type | Description | 
|---|---|---|
| List | taskFileAttachment collection | Get a list of the taskFileAttachment objects and their properties. | 
| Attach small file | taskFileAttachment collection | Add a new taskFileAttachment object to a todoTask. | 
| Attach all file sizes | taskFileAttachment collection | Create an upload session to iteratively upload ranges of a file as an attachment to a todoTask. | 
| Get | taskFileAttachment | Read the properties and relationships of a taskFileAttachment object. | 
| Delete | None | Delete a taskFileAttachment object. | 
Properties
| Property | Type | Description | 
|---|---|---|
| contentBytes | Binary | The base64-encoded contents of the file. | 
| contentType | String | The content type of the attachment. Inherited from attachmentBase. | 
| id | String | The ID of the attachment. Inherited from entity. | 
| lastModifiedDateTime | DateTimeOffset | The date and time when the attachment was last modified. Inherited from attachmentBase. | 
| name | String | The name of the text displayed under the icon that represents the embedded attachment. This does not need to be the actual file name. Inherited from attachmentBase. | 
| size | Int32 | The size in bytes of the attachment. Inherited from attachmentBase. | 
Relationships
None.
JSON representation
The following JSON representation shows the resource type.
{
  "@odata.type": "#microsoft.graph.taskFileAttachment",
  "contentBytes": "Binary",
  "contentType": "String",
  "id": "String (identifier)",
  "lastModifiedDateTime": "String (timestamp)",
  "name": "String",
  "size": "Int32"
}