Condividi tramite


RecognitionResult.ToString Method

RecognitionResult.ToString Method

Returns a string that represents the TopAlternate property of the current RecognitionResult 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 TopAlternate property of the current RecognitionResult object.

Examples

[C#]

This C# example retrieves a string that represents the top alternate for a RecognitionResult object, theRecognitionResult, and displays it in a MessageBox Leave Site.

//Send the top alternate to a MessageBox
MessageBox.Show(theRecognitionResult.ToString());

[Visual Basic .NET]

This Microsoft® Visual Basic® .NET example retrieves a string that represents the top alternate for a RecognitionResult object, theRecognitionResult, and displays it in a MessageBox Leave Site.

'Send the top alternate to a MessageBox
MessageBox.Show(theRecognitionResult.ToString())

See Also