IFormBuilder<T>.Confirm Metoda
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
Przeciążenia
Confirm(MessageDelegate<T>, ActiveDelegate<T>, IEnumerable<String>) |
Wygeneruj potwierdzenie przy użyciu delegata, aby dynamicznie skompilować komunikat. |
Confirm(PromptAttribute, ActiveDelegate<T>, IEnumerable<String>) |
Dodaj krok potwierdzenia. |
Confirm(String, ActiveDelegate<T>, IEnumerable<String>) |
Dodaj krok potwierdzenia. |
Confirm(MessageDelegate<T>, ActiveDelegate<T>, IEnumerable<String>)
Wygeneruj potwierdzenie przy użyciu delegata, aby dynamicznie skompilować komunikat.
public Microsoft.Bot.Builder.FormFlow.IFormBuilder<T> Confirm (Microsoft.Bot.Builder.FormFlow.MessageDelegate<T> generateMessage, Microsoft.Bot.Builder.FormFlow.ActiveDelegate<T> condition = default, System.Collections.Generic.IEnumerable<string> dependencies = default);
abstract member Confirm : 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 Confirm (generateMessage As MessageDelegate(Of T), Optional condition As ActiveDelegate(Of T) = Nothing, Optional dependencies As IEnumerable(Of String) = Nothing) As IFormBuilder(Of T)
Parametry
- generateMessage
- MessageDelegate<T>
Delegowanie do kompilowania komunikatu.
- condition
- ActiveDelegate<T>
Bez względu na to, czy ten krok jest aktywny.
- dependencies
- IEnumerable<String>
Od pól, od których zależy to potwierdzenie.
Zwraca
Zmodyfikowany program IFormBuilder.
Dotyczy
Confirm(PromptAttribute, ActiveDelegate<T>, IEnumerable<String>)
Dodaj krok potwierdzenia.
public Microsoft.Bot.Builder.FormFlow.IFormBuilder<T> Confirm (Microsoft.Bot.Builder.FormFlow.PromptAttribute prompt, Microsoft.Bot.Builder.FormFlow.ActiveDelegate<T> condition = default, System.Collections.Generic.IEnumerable<string> dependencies = default);
abstract member Confirm : 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 Confirm (prompt As PromptAttribute, Optional condition As ActiveDelegate(Of T) = Nothing, Optional dependencies As IEnumerable(Of String) = Nothing) As IFormBuilder(Of T)
Parametry
- prompt
- PromptAttribute
Monituj o podanie potwierdzenia.
- condition
- ActiveDelegate<T>
Delegowanie do testowania, jeśli potwierdzenie ma zastosowanie do bieżącego stanu formularza.
- dependencies
- IEnumerable<String>
Od pól, od których zależy to potwierdzenie.
Zwraca
Zmodyfikowany program IFormBuilder.
Uwagi
Zależności będą domyślnie wszystkie aktywne kroki zdefiniowane przed tym potwierdzeniem.
Dotyczy
Confirm(String, ActiveDelegate<T>, IEnumerable<String>)
Dodaj krok potwierdzenia.
public Microsoft.Bot.Builder.FormFlow.IFormBuilder<T> Confirm (string prompt = default, Microsoft.Bot.Builder.FormFlow.ActiveDelegate<T> condition = default, System.Collections.Generic.IEnumerable<string> dependencies = default);
abstract member Confirm : string * Microsoft.Bot.Builder.FormFlow.ActiveDelegate<'T (requires 'T : null)> * seq<string> -> Microsoft.Bot.Builder.FormFlow.IFormBuilder<'T (requires 'T : null)>
Public Function Confirm (Optional prompt As String = Nothing, Optional condition As ActiveDelegate(Of T) = Nothing, Optional dependencies As IEnumerable(Of String) = Nothing) As IFormBuilder(Of T)
Parametry
- prompt
- String
Monituj o podanie potwierdzenia.
- condition
- ActiveDelegate<T>
Delegowanie do testowania, jeśli potwierdzenie ma zastosowanie do bieżącego stanu formularza.
- dependencies
- IEnumerable<String>
Od pól, od których zależy to potwierdzenie.
Zwraca
Zmodyfikowany program IFormBuilder.
Uwagi
Jeśli monit nie zostanie podany, element \ref patterns {*} zostanie użyty do potwierdzenia. Zależności będą domyślnie wszystkie aktywne kroki zdefiniowane przed tym potwierdzeniem.