语言

VideoCard 构造函数

定义

重载

VideoCard()

初始化 VideoCard 类的新实例。

public VideoCard();
Public Sub New ()

适用于

VideoCard(String, String, String, ThumbnailUrl, IList<MediaUrl>, IList<CardAction>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, String, Object, String)

初始化 VideoCard 类的新实例。

public VideoCard(string title = default, string subtitle = default, string text = default, Microsoft.Bot.Schema.ThumbnailUrl image = default, System.Collections.Generic.IList<Microsoft.Bot.Schema.MediaUrl> media = default, System.Collections.Generic.IList<Microsoft.Bot.Schema.CardAction> buttons = default, bool? shareable = default, bool? autoloop = default, bool? autostart = default, string aspect = default, object value = default, string duration = default);
new Microsoft.Bot.Schema.VideoCard : string * string * string * Microsoft.Bot.Schema.ThumbnailUrl * System.Collections.Generic.IList<Microsoft.Bot.Schema.MediaUrl> * System.Collections.Generic.IList<Microsoft.Bot.Schema.CardAction> * Nullable<bool> * Nullable<bool> * Nullable<bool> * string * obj * string -> Microsoft.Bot.Schema.VideoCard
Public Sub New (Optional title As String = Nothing, Optional subtitle As String = Nothing, Optional text As String = Nothing, Optional image As ThumbnailUrl = Nothing, Optional media As IList(Of MediaUrl) = Nothing, Optional buttons As IList(Of CardAction) = Nothing, Optional shareable As Nullable(Of Boolean) = Nothing, Optional autoloop As Nullable(Of Boolean) = Nothing, Optional autostart As Nullable(Of Boolean) = Nothing, Optional aspect As String = Nothing, Optional value As Object = Nothing, Optional duration As String = Nothing)

参数

title
String

这张卡的标题。

subtitle
String

这张卡片的副标题。

text
String

这张卡片的文字。

image
ThumbnailUrl

一个缩略图占位符。

media
IList<MediaUrl>

此卡的媒体 URL。 当此字段包含多个 URL 时,每个 URL 都是相同内容的替代格式。

buttons
IList<CardAction>

这张牌上的行动。

shareable
Nullable<Boolean>

本内容可与他人分享(默认:true)。

autoloop
Nullable<Boolean>

客户端是否应该在内容结束时循环播放(default:true)。

autostart
Nullable<Boolean>

客户端是否会自动开始播放这张卡中的媒体(default:true)。

aspect
String

缩略图/媒体占位符的纵横比。 允许的值为“16:9”和“4:3”。

value
Object

此卡的补充参数。

duration
String

描述媒体内容的长度,而无需接收方打开内容。 格式为 ISO 8601 持续时间字段。

适用于