MessageDelegate<T> 委托

定义

给定 state 返回一个 PromptAttribute ,其中包含要显示消息的模板。

public delegate System.Threading.Tasks.Task<Microsoft.Bot.Builder.FormFlow.PromptAttribute> MessageDelegate<T>(T state);
type MessageDelegate<'T> = delegate of 'T -> Task<PromptAttribute>
Public Delegate Function MessageDelegate(Of T)(state As T) As Task(Of PromptAttribute) 

类型参数

T

窗体状态类型。

参数

state
T

窗体状态。

返回值

描述要显示的消息的 PromptAttribute。

适用于