Office365GroupsMailClient.GetAttachmentsAsync Method

Definition

List the attachments of a post

public virtual Azure.AsyncPageable<Azure.Connectors.Sdk.Office365GroupsMail.Models.Attachment> GetAttachmentsAsync(string groupId, string threadId, string postId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAttachmentsAsync : string * string * string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.Connectors.Sdk.Office365GroupsMail.Models.Attachment>
override this.GetAttachmentsAsync : string * string * string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.Connectors.Sdk.Office365GroupsMail.Models.Attachment>
Public Overridable Function GetAttachmentsAsync (groupId As String, threadId As String, postId As String, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of Attachment)

Parameters

groupId
String

Group ID

threadId
String

Thread ID

postId
String

Post ID

cancellationToken
CancellationToken

Cancellation token.

Returns

An async enumerable of Attachment items across all pages.

Remarks

Retrieve a list of attachments that belong to a post.

Applies to