Partager via


Recognizer.Name Property

Recognizer.Name Property

Gets the name of the Recognizer object.

Definition

Visual Basic .NET Public ReadOnly Property Name As String
C# public string Name { get; }
Managed C++ public: __property String* get_Name();

Property Value

System.String. The name of the Recognizer object.

This property is read-only. This property has no default value.

Examples

[C#]

This C# example loads the names of all recognizers in the Recognizers collection, theRecognizers, into a list box, theListBox.

//...
Recognizers theRecognizers = new Recognizers();
foreach (Recognizer theRecognizer in theRecognizers)
{
    theListBox.Items.Add(theRecognizer.Name);
}

[Visual Basic .NET]

This Microsoft® Visual Basic® .NET example loads the names of all recognizers in the Recognizers collection, theRecognizers, into a list box, theListBox.

'...
Dim theRecognizers As New Recognizers()
Dim theRecognizer As Recognizer
For Each theRecognizer in theRecognizers
    theListBox.Items.Add(theRecognizer.Name)
Next