FileConsentCard 构造函数

定义

重载

FileConsentCard()

初始化 FileConsentCard 类的新实例。

FileConsentCard(String, Nullable<Int64>, Object, Object)

初始化 FileConsentCard 类的新实例。

FileConsentCard()

初始化 FileConsentCard 类的新实例。

public FileConsentCard ();
Public Sub New ()

适用于

FileConsentCard(String, Nullable<Int64>, Object, Object)

初始化 FileConsentCard 类的新实例。

public FileConsentCard (string description = default, long? sizeInBytes = default, object acceptContext = default, object declineContext = default);
new Microsoft.Bot.Schema.Teams.FileConsentCard : string * Nullable<int64> * obj * obj -> Microsoft.Bot.Schema.Teams.FileConsentCard
Public Sub New (Optional description As String = Nothing, Optional sizeInBytes As Nullable(Of Long) = Nothing, Optional acceptContext As Object = Nothing, Optional declineContext As Object = Nothing)

参数

description
String

文件说明。

sizeInBytes
Nullable<Int64>

要上传的文件的大小(以字节为单位)。

acceptContext
Object

如果用户同意上传,则发送回机器人的上下文。 这是自由流架构,在“活动”的“值”字段中发送回。

declineContext
Object

如果用户拒绝,则发送回机器人的上下文。 这是自由流架构,在“活动”的“值”字段中发送回。

适用于