IFormBuilder<T>.Message 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| Message(MessageDelegate<T>, ActiveDelegate<T>, IEnumerable<String>) |
使用代理生成消息,动态构建消息。 |
| Message(PromptAttribute, ActiveDelegate<T>, IEnumerable<String>) |
展示一个格式控制更多且不需要回复的消息。 |
| Message(String, ActiveDelegate<T>, IEnumerable<String>) |
展示一条不需要回复的信息。 |
Message(MessageDelegate<T>, ActiveDelegate<T>, IEnumerable<String>)
使用代理生成消息,动态构建消息。
public Microsoft.Bot.Builder.FormFlow.IFormBuilder<T> Message(Microsoft.Bot.Builder.FormFlow.MessageDelegate<T> generateMessage, Microsoft.Bot.Builder.FormFlow.ActiveDelegate<T> condition = default, System.Collections.Generic.IEnumerable<string> dependencies = default);
abstract member Message : Microsoft.Bot.Builder.FormFlow.MessageDelegate<'T (requires 'T : null)> * Microsoft.Bot.Builder.FormFlow.ActiveDelegate<'T (requires 'T : null)> * seq<string> -> Microsoft.Bot.Builder.FormFlow.IFormBuilder<'T (requires 'T : null)>
Public Function Message (generateMessage As MessageDelegate(Of T), Optional condition As ActiveDelegate(Of T) = Nothing, Optional dependencies As IEnumerable(Of String) = Nothing) As IFormBuilder(Of T)
参数
- generateMessage
- MessageDelegate<T>
建筑信息的委托。
- condition
- ActiveDelegate<T>
无论这一步是否生效。
- dependencies
- IEnumerable<String>
字段信息取决于具体情况。
返回
修改版IFormBuilder。
适用于
Message(PromptAttribute, ActiveDelegate<T>, IEnumerable<String>)
展示一个格式控制更多且不需要回复的消息。
public Microsoft.Bot.Builder.FormFlow.IFormBuilder<T> Message(Microsoft.Bot.Builder.FormFlow.PromptAttribute prompt, Microsoft.Bot.Builder.FormFlow.ActiveDelegate<T> condition = default, System.Collections.Generic.IEnumerable<string> dependencies = default);
abstract member Message : Microsoft.Bot.Builder.FormFlow.PromptAttribute * Microsoft.Bot.Builder.FormFlow.ActiveDelegate<'T (requires 'T : null)> * seq<string> -> Microsoft.Bot.Builder.FormFlow.IFormBuilder<'T (requires 'T : null)>
Public Function Message (prompt As PromptAttribute, Optional condition As ActiveDelegate(Of T) = Nothing, Optional dependencies As IEnumerable(Of String) = Nothing) As IFormBuilder(Of T)
参数
- prompt
- PromptAttribute
请填写并发送消息。
- condition
- ActiveDelegate<T>
无论这一步是否生效。
- dependencies
- IEnumerable<String>
字段信息取决于具体情况。
返回
修改版IFormBuilder。
适用于
Message(String, ActiveDelegate<T>, IEnumerable<String>)
展示一条不需要回复的信息。
public Microsoft.Bot.Builder.FormFlow.IFormBuilder<T> Message(string message, Microsoft.Bot.Builder.FormFlow.ActiveDelegate<T> condition = default, System.Collections.Generic.IEnumerable<string> dependencies = default);
abstract member Message : string * Microsoft.Bot.Builder.FormFlow.ActiveDelegate<'T (requires 'T : null)> * seq<string> -> Microsoft.Bot.Builder.FormFlow.IFormBuilder<'T (requires 'T : null)>
Public Function Message (message As String, Optional condition As ActiveDelegate(Of T) = Nothing, Optional dependencies As IEnumerable(Of String) = Nothing) As IFormBuilder(Of T)
参数
- message
- String
一个 \rEF会用图案来填充并发送。
- condition
- ActiveDelegate<T>
无论这一步是否生效。
- dependencies
- IEnumerable<String>
字段信息取决于具体情况。
返回
修改版IFormBuilder。