AttachmentExtensions.ToMessagingExtensionAttachment 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.
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.