Share via


FileConsentCard Constructors

Definition

Overloads

FileConsentCard()

Initializes a new instance of the FileConsentCard class.

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

Initializes a new instance of the FileConsentCard class.

FileConsentCard()

Initializes a new instance of the FileConsentCard class.

public FileConsentCard ();
Public Sub New ()

Applies to

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

Initializes a new instance of the FileConsentCard class.

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)

Parameters

description
String

File description.

sizeInBytes
Nullable<Int64>

Size of the file to be uploaded in Bytes.

acceptContext
Object

Context sent back to the Bot if user consented to upload. This is free flow schema and is sent back in Value field of Activity.

declineContext
Object

Context sent back to the Bot if user declined. This is free flow schema and is sent back in Value field of Activity.

Applies to