Compartilhar via


Recognizer.ToString Method

Recognizer.ToString Method

Returns a string that represents the current Recognizer object.

Definition

Visual Basic .NET Overrides Public Function ToString() As String
C# public override string ToString();
Managed C++ public: String* ToString();

Return Value

System.String. Returns a string that represents the current Recognizer object.

Examples

[C#]

This C# example queries a RecognizerContext, theRecognizerContext, to see which Recognizer object it is attached to. The name of the Recognizer object is then added to a ListBox Leave Site control, theListBox.

//Send the name of the recognizer to theListBox
theListBox.Items.Add(theRecognizerContext.Recognizer.ToString());

[Visual Basic .NET]

This Microsoft® Visual Basic® .NET example queries a RecognizerContext, theRecognizerContext, to see which Recognizer object it is attached to. The name of the Recognizer object is then added to a ListBox Leave Site control, theListBox.

'Send the name of the recognizer to theListBox
theListBox.Items.Add(theRecognizerContext.Recognizer.ToString())