AttachmentInput 類別

定義

輸入對話框,提示用戶傳送檔案。

public class AttachmentInput : Microsoft.Bot.Builder.Dialogs.Adaptive.Input.InputDialog
type AttachmentInput = class
    inherit InputDialog
Public Class AttachmentInput
Inherits InputDialog
繼承
AttachmentInput

建構函式

AttachmentInput(String, Int32)

初始化 AttachmentInput 類別的新實例。

欄位

Kind

類別標識碼。

TURN_COUNT_PROPERTY

定義對話框內容回合計數屬性值。

(繼承來源 InputDialog)
VALUE_PROPERTY

定義對話內容狀態屬性值。

(繼承來源 InputDialog)

屬性

AllowInterruptions

取得或設定 intteruption 原則。

(繼承來源 InputDialog)
AlwaysPrompt

取得或設定值,指出輸入是否應該一律提示使用者,而不論是否有值。

(繼承來源 InputDialog)
DefaultValue

取得或設定超過 MaxTurnCount時輸入對話框的預設值。

(繼承來源 InputDialog)
DefaultValueResponse

取得或設定當達到 MaxTurnCount且使用預設值時要傳送的活動範本。

(繼承來源 InputDialog)
Disabled

取得或設定是否應該停用此動作。

(繼承來源 InputDialog)
Id

取得或設定對話框的識別碼。

(繼承來源 Dialog)
InvalidPrompt

取得或設定每當提供的值無效時傳送給用戶的活動範本。

(繼承來源 InputDialog)
MaxTurnCount

取得或設定在對話框放棄之前要求使用者提供此值的次數上限。

(繼承來源 InputDialog)
OutputFormat

取得或設定附件的 AttachmentOutputFormat。

Prompt

取得或設定要傳送給用戶的活動。

(繼承來源 InputDialog)
Property

取得或設定將系結值的記憶體屬性路徑。

(繼承來源 InputDialog)
Source

取得 cref=“SourceRange”/>的資訊。

(繼承來源 Dialog)
TelemetryClient

取得或設定要用於記錄的 IBotTelemetryClient

(繼承來源 Dialog)
UnrecognizedPrompt

取得或設定重試的活動範本。

(繼承來源 InputDialog)
Validations

取得或設定要執行的運算式,以驗證輸入。

(繼承來源 InputDialog)
Value

取得或設定用來將輸入系結至對話框的表達式。

(繼承來源 InputDialog)

方法

AppendChoices(IMessageActivity, String, IList<Choice>, ListStyle, ChoiceFactoryOptions, CancellationToken)

AppendChoices 是公用程式方法,可透過所有選項來建置訊息活動。

(繼承來源 InputDialog)
AppendChoices(IMessageActivity, String, IList<Choice>, ListStyle, ChoiceFactoryOptions, String, IList<String>, CancellationToken)

AppendChoices 是公用程式方法,可透過所有選項來建置訊息活動。

(繼承來源 InputDialog)
BeginDialogAsync(DialogContext, Object, CancellationToken)

啟動對話框並推送至對話堆疊時呼叫。

(繼承來源 InputDialog)
ContinueDialogAsync(DialogContext, CancellationToken)

當對話框 繼續時呼叫,其中它是使用中的對話框,而使用者會以新的活動回復。

(繼承來源 InputDialog)
EndDialogAsync(ITurnContext, DialogInstance, DialogReason, CancellationToken)

對話框結束時呼叫。

(繼承來源 Dialog)
GetVersion()

取得代表這個對話框版本的唯一字串。 如果之間的版本變更,對話系統將會發出 DialogChanged 事件。

(繼承來源 Dialog)
OnComputeId()

建置對話框的計算標識碼。

(繼承來源 Dialog)
OnDialogEventAsync(DialogContext, DialogEvent, CancellationToken)

使用 DialogContext.emitEvent()引發事件時,由目前對話框或目前對話框啟動的對話框呼叫。

(繼承來源 Dialog)
OnInitializeOptions(DialogContext, Object)

處理選項的方法。

(繼承來源 InputDialog)
OnPostBubbleEventAsync(DialogContext, DialogEvent, CancellationToken)

在事件向所有家長泡泡後呼叫,但未處理。

(繼承來源 Dialog)
OnPreBubbleEventAsync(DialogContext, DialogEvent, CancellationToken)

在事件反升至其父系之前呼叫。

(繼承來源 InputDialog)
OnRecognizeInputAsync(DialogContext, CancellationToken)

收到輸入時呼叫。

OnRenderPromptAsync(DialogContext, InputState, CancellationToken)

將提示呈現給使用者的方法,提供 n 目前的輸入狀態。

(繼承來源 InputDialog)
RegisterSourceLocation(String, Int32)

在提供的位置註冊 cref=“SourceRange”/>。

(繼承來源 Dialog)
RepromptDialogAsync(ITurnContext, DialogInstance, CancellationToken)

當對話框應該重新提示使用者輸入時呼叫。

(繼承來源 Dialog)
ResumeDialogAsync(DialogContext, DialogReason, Object, CancellationToken)

當子對話完成回合時呼叫,將控件傳回這個對話方塊。

(繼承來源 InputDialog)

擴充方法

RunAsync(Dialog, ITurnContext, IStatePropertyAccessor<DialogState>, CancellationToken)

建立對話堆疊並啟動對話,並將它推送至堆疊。

適用於