共用方式為


Chain.Do<T> 方法

定義

完成之後 IDialog<TResult> 執行副作用。

public static Microsoft.Bot.Builder.Dialogs.IDialog<T> Do<T> (this Microsoft.Bot.Builder.Dialogs.IDialog<T> antecedent, Func<Microsoft.Bot.Builder.Dialogs.IBotContext,Microsoft.Bot.Builder.Dialogs.IAwaitable<T>,System.Threading.Tasks.Task> callback);
static member Do : Microsoft.Bot.Builder.Dialogs.IDialog<'T> * Func<Microsoft.Bot.Builder.Dialogs.IBotContext, Microsoft.Bot.Builder.Dialogs.IAwaitable<'T>, System.Threading.Tasks.Task> -> Microsoft.Bot.Builder.Dialogs.IDialog<'T>
<Extension()>
Public Function Do(Of T) (antecedent As IDialog(Of T), callback As Func(Of IBotContext, IAwaitable(Of T), Task)) As IDialog(Of T)

類型參數

T

對話方塊的類型。

參數

antecedent
IDialog<T>

前項 IDialog<TResult>

callback
Func<IBotContext,IAwaitable<T>,Task>

回呼方法。

傳回

IDialog<T>

前項對話方塊。

適用於