AttachmentExtensions.ToMessagingExtensionAttachment 方法

定义

将普通附件转换为消息传递扩展附件。

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

参数

attachment
Attachment

附件。

previewAttachment
Attachment

预览附件。

返回

消息传递扩展附件。

适用于