Taal

IFormBuilder<T>.Field Methode

Definitie

Overloads

Name Description
Field(IField<T>)

Verfijn een veldstap door je eigen velddefinitie te geven.

Field(String, ActiveDelegate<T>, ValidateAsyncDelegate<T>)

Definieer een stap om een bepaalde waarde in de vormtoestand in te vullen.

Field(String, PromptAttribute, ActiveDelegate<T>, ValidateAsyncDelegate<T>)

Definieer een stap om een bepaalde waarde in de vormtoestand in te vullen.

Field(String, String, ActiveDelegate<T>, ValidateAsyncDelegate<T>)

Definieer een stap om een bepaalde waarde in de vormtoestand in te vullen.

Field(IField<T>)

Verfijn een veldstap door je eigen velddefinitie te geven.

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)

Parameters

field
IField<T>

Velddefinitie om te gebruiken.

Retouren

Aangepaste IFormBuilder.

Opmerkingen

Je kunt je eigen implementatie IField<T> van of de klasse gebruiken Field<T> om vloeiende waarden te geven, FieldReflector<T> om reflectie te gebruiken of Json.FieldJson om het JSON Schema te gebruiken.

Van toepassing op

Field(String, ActiveDelegate<T>, ValidateAsyncDelegate<T>)

Definieer een stap om een bepaalde waarde in de vormtoestand in te vullen.

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)

Parameters

name
String

Pad in de formuliertoestand naar de waarde die wordt ingevuld te worden.

active
ActiveDelegate<T>

Delegeer om de status van het formulier te testen om te zien of de stap actief is.

validate
ValidateAsyncDelegate<T>

Delegeer om de veldwaarde te valideren.

Retouren

Aangepaste IFormBuilder.

Van toepassing op

Field(String, PromptAttribute, ActiveDelegate<T>, ValidateAsyncDelegate<T>)

Definieer een stap om een bepaalde waarde in de vormtoestand in te vullen.

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)

Parameters

name
String

Pad in de formuliertoestand naar de waarde die wordt ingevuld te worden.

prompt
PromptAttribute

Promptpatroon met meer opmaakcontrole om prompt voor veld te beschrijven.

active
ActiveDelegate<T>

Delegeer om de vorm toestand te testen om te zien of stap actief is.n

validate
ValidateAsyncDelegate<T>

Delegeer om de veldwaarde te valideren.

Retouren

Aangepaste IFormBuilder.

Van toepassing op

Field(String, String, ActiveDelegate<T>, ValidateAsyncDelegate<T>)

Definieer een stap om een bepaalde waarde in de vormtoestand in te vullen.

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)

Parameters

name
String

Pad in de formuliertoestand naar de waarde die wordt ingevuld te worden.

prompt
String

Eenvoudige \ref-patronen om prompt voor veld te beschrijven.

active
ActiveDelegate<T>

Delegeer om de vorm toestand te testen om te zien of stap actief is.n

validate
ValidateAsyncDelegate<T>

Delegeer om de veldwaarde te valideren.

Retouren

Aangepaste IFormBuilder.

Van toepassing op