語言

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。

適用於