Extensions.ToAttachment Method

Definition

Overloads

ToAttachment(AnimationCard)

Creates a new attachment from AnimationCard.

ToAttachment(AudioCard)

Creates a new attachment from AudioCard.

ToAttachment(HeroCard)

Creates a new attachment from HeroCard.

ToAttachment(OAuthCard)

Creates a new attachment from OAuthCard.

ToAttachment(ReceiptCard)

Creates a new attachment from ReceiptCard.

ToAttachment(SigninCard)

Creates a new attachment from SigninCard.

ToAttachment(ThumbnailCard)

Creates a new attachment from ThumbnailCard.

ToAttachment(VideoCard)

Creates a new attachment from VideoCard.

ToAttachment(AnimationCard)

Creates a new attachment from AnimationCard.

public static Microsoft.Bot.Schema.Attachment ToAttachment (this Microsoft.Bot.Schema.AnimationCard card);
static member ToAttachment : Microsoft.Bot.Schema.AnimationCard -> Microsoft.Bot.Schema.Attachment
<Extension()>
Public Function ToAttachment (card As AnimationCard) As Attachment

Parameters

card
AnimationCard

The instance of AnimationCard.

Returns

The generated attachment.

Applies to

ToAttachment(AudioCard)

Creates a new attachment from AudioCard.

public static Microsoft.Bot.Schema.Attachment ToAttachment (this Microsoft.Bot.Schema.AudioCard card);
static member ToAttachment : Microsoft.Bot.Schema.AudioCard -> Microsoft.Bot.Schema.Attachment
<Extension()>
Public Function ToAttachment (card As AudioCard) As Attachment

Parameters

card
AudioCard

The instance of AudioCard.

Returns

The generated attachment.

Applies to

ToAttachment(HeroCard)

Creates a new attachment from HeroCard.

public static Microsoft.Bot.Schema.Attachment ToAttachment (this Microsoft.Bot.Schema.HeroCard card);
static member ToAttachment : Microsoft.Bot.Schema.HeroCard -> Microsoft.Bot.Schema.Attachment
<Extension()>
Public Function ToAttachment (card As HeroCard) As Attachment

Parameters

card
HeroCard

The instance of HeroCard.

Returns

The generated attachment.

Applies to

ToAttachment(OAuthCard)

Creates a new attachment from OAuthCard.

public static Microsoft.Bot.Schema.Attachment ToAttachment (this Microsoft.Bot.Schema.OAuthCard card);
static member ToAttachment : Microsoft.Bot.Schema.OAuthCard -> Microsoft.Bot.Schema.Attachment
<Extension()>
Public Function ToAttachment (card As OAuthCard) As Attachment

Parameters

card
OAuthCard

The instance of OAuthCard.

Returns

The generated attachment.

Applies to

ToAttachment(ReceiptCard)

Creates a new attachment from ReceiptCard.

public static Microsoft.Bot.Schema.Attachment ToAttachment (this Microsoft.Bot.Schema.ReceiptCard card);
static member ToAttachment : Microsoft.Bot.Schema.ReceiptCard -> Microsoft.Bot.Schema.Attachment
<Extension()>
Public Function ToAttachment (card As ReceiptCard) As Attachment

Parameters

card
ReceiptCard

The instance of ReceiptCard.

Returns

The generated attachment.

Applies to

ToAttachment(SigninCard)

Creates a new attachment from SigninCard.

public static Microsoft.Bot.Schema.Attachment ToAttachment (this Microsoft.Bot.Schema.SigninCard card);
static member ToAttachment : Microsoft.Bot.Schema.SigninCard -> Microsoft.Bot.Schema.Attachment
<Extension()>
Public Function ToAttachment (card As SigninCard) As Attachment

Parameters

card
SigninCard

The instance of SigninCard.

Returns

The generated attachment.

Applies to

ToAttachment(ThumbnailCard)

Creates a new attachment from ThumbnailCard.

public static Microsoft.Bot.Schema.Attachment ToAttachment (this Microsoft.Bot.Schema.ThumbnailCard card);
static member ToAttachment : Microsoft.Bot.Schema.ThumbnailCard -> Microsoft.Bot.Schema.Attachment
<Extension()>
Public Function ToAttachment (card As ThumbnailCard) As Attachment

Parameters

card
ThumbnailCard

The instance of ThumbnailCard.

Returns

The generated attachment.

Applies to

ToAttachment(VideoCard)

Creates a new attachment from VideoCard.

public static Microsoft.Bot.Schema.Attachment ToAttachment (this Microsoft.Bot.Schema.VideoCard card);
static member ToAttachment : Microsoft.Bot.Schema.VideoCard -> Microsoft.Bot.Schema.Attachment
<Extension()>
Public Function ToAttachment (card As VideoCard) As Attachment

Parameters

card
VideoCard

The instance of VideoCard.

Returns

The generated attachment.

Applies to