Language

IFormBuilder<T>.Field メソッド

定義

オーバーロード

名前 説明
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>クラスを使ってフルエント値を提供したり、リフレクションやJSON Schemaを使うFieldReflector<T>Json.FieldJsonを使うこともできます。

適用対象

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>

テストフォーム州に委任して、ステップが有効かどうか確認してください。

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

フィールドのプロンプトを説明するための簡単なEFパターン \r。

active
ActiveDelegate<T>

テストフォーム州に委任して、ステップが有効かどうか確認してください。

validate
ValidateAsyncDelegate<T>

フィールドの値を検証するために委任します。

返品

修正されたIFormBuilderです。

適用対象