MessageDelegate<T> 委托
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
给定 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。