AttachmentsExtensions.GetAttachmentInfoAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
GetAttachmentInfo.
public static System.Threading.Tasks.Task<Microsoft.Bot.Connector.AttachmentInfo> GetAttachmentInfoAsync (this Microsoft.Bot.Connector.IAttachments operations, string attachmentId, System.Threading.CancellationToken cancellationToken = default);
public static System.Threading.Tasks.Task<Microsoft.Bot.Schema.AttachmentInfo> GetAttachmentInfoAsync (this Microsoft.Bot.Connector.IAttachments operations, string attachmentId, System.Threading.CancellationToken cancellationToken = default);
static member GetAttachmentInfoAsync : Microsoft.Bot.Connector.IAttachments * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Connector.AttachmentInfo>
static member GetAttachmentInfoAsync : Microsoft.Bot.Connector.IAttachments * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Schema.AttachmentInfo>
<Extension()>
Public Function GetAttachmentInfoAsync (operations As IAttachments, attachmentId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AttachmentInfo)
Parameters
- operations
- IAttachments
The operations group for this extension method.
- attachmentId
- String
attachment id.
- cancellationToken
- CancellationToken
The cancellation token.
Returns
The AttachmentInfo.
Remarks
Get AttachmentInfo structure describing the attachment views.