IFormBuilder<T>.Field メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
| Field(IField<T>) |
独自のフィールド定義を指定して、フィールド ステップを解除します。 |
| Field(String, ActiveDelegate<T>, ValidateAsyncDelegate<T>) |
フォーム状態の特定の値を入力するためのステップを定義します。 |
| Field(String, PromptAttribute, ActiveDelegate<T>, ValidateAsyncDelegate<T>) |
フォーム状態の特定の値を入力するためのステップを定義します。 |
| Field(String, String, ActiveDelegate<T>, ValidateAsyncDelegate<T>) |
フォーム状態の特定の値を入力するためのステップを定義します。 |
Field(IField<T>)
独自のフィールド定義を指定して、フィールド ステップを解除します。
public Microsoft.Bot.Builder.FormFlow.IFormBuilder<T> Field(Microsoft.Bot.Builder.FormFlow.Advanced.IField<T> field);
abstract member Field : Microsoft.Bot.Builder.FormFlow.Advanced.IField<'T (requires 'T : null)> -> Microsoft.Bot.Builder.FormFlow.IFormBuilder<'T (requires 'T : null)>
Public Function Field (field As IField(Of T)) As IFormBuilder(Of T)
パラメーター
- field
- IField<T>
使用するフィールド定義。
戻り値
IFormBuilder を変更しました。
注釈
の独自の IField<T> 実装を提供するか、 クラスを Field<T> 使用して fluent 値を指定し、 FieldReflector<T> リフレクションまたは Json.FieldJson を使用して JSON スキーマを使用できます。
適用対象
Field(String, ActiveDelegate<T>, ValidateAsyncDelegate<T>)
フォーム状態の特定の値を入力するためのステップを定義します。
public Microsoft.Bot.Builder.FormFlow.IFormBuilder<T> Field(string name, Microsoft.Bot.Builder.FormFlow.ActiveDelegate<T> active = default, Microsoft.Bot.Builder.FormFlow.ValidateAsyncDelegate<T> validate = default);
abstract member Field : string * Microsoft.Bot.Builder.FormFlow.ActiveDelegate<'T (requires 'T : null)> * Microsoft.Bot.Builder.FormFlow.ValidateAsyncDelegate<'T (requires 'T : null)> -> Microsoft.Bot.Builder.FormFlow.IFormBuilder<'T (requires 'T : null)>
Public Function Field (name As String, Optional active As ActiveDelegate(Of T) = Nothing, Optional validate As ValidateAsyncDelegate(Of T) = Nothing) As IFormBuilder(Of T)
パラメーター
- name
- String
入力されている値へのフォーム状態のパス。
- active
- ActiveDelegate<T>
フォームの状態をテストし、ステップがアクティブかどうかを確認するデリゲート。
- validate
- ValidateAsyncDelegate<T>
フィールド値を検証するデリゲート。
戻り値
IFormBuilder を変更しました。
適用対象
Field(String, PromptAttribute, ActiveDelegate<T>, ValidateAsyncDelegate<T>)
フォーム状態の特定の値を入力するためのステップを定義します。
public Microsoft.Bot.Builder.FormFlow.IFormBuilder<T> Field(string name, Microsoft.Bot.Builder.FormFlow.PromptAttribute prompt, Microsoft.Bot.Builder.FormFlow.ActiveDelegate<T> active = default, Microsoft.Bot.Builder.FormFlow.ValidateAsyncDelegate<T> validate = default);
abstract member Field : string * Microsoft.Bot.Builder.FormFlow.PromptAttribute * Microsoft.Bot.Builder.FormFlow.ActiveDelegate<'T (requires 'T : null)> * Microsoft.Bot.Builder.FormFlow.ValidateAsyncDelegate<'T (requires 'T : null)> -> Microsoft.Bot.Builder.FormFlow.IFormBuilder<'T (requires 'T : null)>
Public Function Field (name As String, prompt As PromptAttribute, Optional active As ActiveDelegate(Of T) = Nothing, Optional validate As ValidateAsyncDelegate(Of T) = Nothing) As IFormBuilder(Of T)
パラメーター
- name
- String
入力されている値へのフォーム状態のパス。
- prompt
- PromptAttribute
フィールドのプロンプトを記述するためのより多くの書式設定コントロールを持つプロンプト パターン。
- active
- ActiveDelegate<T>
フォームの状態をテストしてステップがアクティブかどうかを確認するデリゲート。n
- validate
- ValidateAsyncDelegate<T>
フィールド値を検証するデリゲート。
戻り値
IFormBuilder を変更しました。
適用対象
Field(String, String, ActiveDelegate<T>, ValidateAsyncDelegate<T>)
フォーム状態の特定の値を入力するためのステップを定義します。
public Microsoft.Bot.Builder.FormFlow.IFormBuilder<T> Field(string name, string prompt, Microsoft.Bot.Builder.FormFlow.ActiveDelegate<T> active = default, Microsoft.Bot.Builder.FormFlow.ValidateAsyncDelegate<T> validate = default);
abstract member Field : string * string * Microsoft.Bot.Builder.FormFlow.ActiveDelegate<'T (requires 'T : null)> * Microsoft.Bot.Builder.FormFlow.ValidateAsyncDelegate<'T (requires 'T : null)> -> Microsoft.Bot.Builder.FormFlow.IFormBuilder<'T (requires 'T : null)>
Public Function Field (name As String, prompt As String, Optional active As ActiveDelegate(Of T) = Nothing, Optional validate As ValidateAsyncDelegate(Of T) = Nothing) As IFormBuilder(Of T)
パラメーター
- name
- String
入力されている値へのフォーム状態のパス。
- prompt
- String
フィールドのプロンプトを記述するための単純な \ref パターン。
- active
- ActiveDelegate<T>
フォームの状態をテストしてステップがアクティブかどうかを確認するデリゲート。n
- validate
- ValidateAsyncDelegate<T>
フィールド値を検証するデリゲート。
戻り値
IFormBuilder を変更しました。