itemAttachment resource type
Namespace: microsoft.graph
Important
APIs under the /beta
version in Microsoft Graph are subject to change. Use of these APIs in production applications is not supported. To determine whether an API is available in v1.0, use the Version selector.
Caution
Existing apps that use this feature with Outlook tasks should be updated, as Outlook tasks are being deprecated. See To Do APIs in public preview for more information.
A contact, event, or message that's attached to a user event, message, Outlook task, or post.
Derived from attachment.
Methods
Method | Return Type | Description |
---|---|---|
Get attachment | itemAttachment | Read the properties, relationships, or raw contents of an itemAttachment object. |
Delete attachment | None | Delete itemAttachment object. |
Properties
Property | Type | Description |
---|---|---|
contentType | String | The content type of the attachment. Returned as null by default, when not set explicitly. Optional. |
id | String | The attachment ID. |
isInline | Boolean | Set to true if the attachment is inline, such as an embedded image within the body of the item. |
lastModifiedDateTime | DateTimeOffset | The last time and date that the attachment was modified. |
name | String | The display name of the attachment. |
size | Int32 | The size in bytes of the attachment. |
Relationships
Relationship | Type | Description |
---|---|---|
item | OutlookItem | The attached contact, message or event. Navigation property. |
JSON representation
The following JSON representation shows the resource type.
{
"contentType": "string",
"id": "string (identifier)",
"isInline": true,
"lastModifiedDateTime": "String (timestamp)",
"name": "string",
"size": 1024
}
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應