Language

AttachmentExtensions.ToMessagingExtensionAttachment Method

Definition

Converts normal attachment into the messaging extension attachment.

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

Parameters

attachment
Attachment

The attachment.

previewAttachment
Attachment

The preview attachment.

Returns

Messaging extension attachment.

Applies to