語言

WaterfallStep 代理人

定義

代表對瀑布步驟的定義。 這是由應用程式程式代碼實作。

public delegate System.Threading.Tasks.Task<Microsoft.Bot.Builder.Dialogs.DialogTurnResult> WaterfallStep(WaterfallStepContext stepContext, CancellationToken cancellationToken);
type WaterfallStep = delegate of WaterfallStepContext * CancellationToken -> Task<DialogTurnResult>
Public Delegate Function WaterfallStep(stepContext As WaterfallStepContext, cancellationToken As CancellationToken) As Task(Of DialogTurnResult) 

參數

stepContext
WaterfallStepContext

這個瀑布式對話的 WaterfallStepContext。

cancellationToken
CancellationToken

取消權杖。

傳回值

表示異步作之 Task 的 DialogTurnResult。

適用於