语言

MessageDelegate<T> 委托

定义

给定 state 后返回 PromptAttribute 带有显示消息模板的A。

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。

适用于