Share via


AttachmentExtensions.ToMessagingExtensionAttachment Method

Definition

Converts normal attachment into the messaging extension attachment.

public static Microsoft.Bot.Schema.Teams.MessagingExtensionAttachment ToMessagingExtensionAttachment (this Microsoft.Bot.Schema.Attachment attachment, Microsoft.Bot.Schema.Attachment previewAttachment = default);
static member ToMessagingExtensionAttachment : Microsoft.Bot.Schema.Attachment * Microsoft.Bot.Schema.Attachment -> Microsoft.Bot.Schema.Teams.MessagingExtensionAttachment
<Extension()>
Public Function ToMessagingExtensionAttachment (attachment As Attachment, Optional previewAttachment As Attachment = Nothing) As MessagingExtensionAttachment

Parameters

attachment
Attachment

The attachment.

previewAttachment
Attachment

The preview attachment.

Returns

Messaging extension attachment.

Applies to