Sdílet prostřednictvím


RecognitionResult.ToString Method

Returns a string that represents the TopAlternate property of the current RecognitionResult object.

Namespace:  Microsoft.Ink
Assembly:  Microsoft.Ink (in Microsoft.Ink.dll)

Syntax

'Declaration
Public Overrides Function ToString As String
'Usage
Dim instance As RecognitionResult 
Dim returnValue As String 

returnValue = instance.ToString()
public override string ToString()
public:
virtual String^ ToString() override
public override function ToString() : String

Return Value

Type: System.String
A string that represents the TopAlternate property of the current RecognitionResult object.

Examples

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

[C#]

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

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.

[Visual Basic]

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

Platforms

Windows 7, Windows Vista, Windows Server 2008 R2, Windows Server 2008

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Version Information

.NET Framework

Supported in: 3.0

See Also

Reference

RecognitionResult Class

RecognitionResult Members

Microsoft.Ink Namespace

RecognitionResult.TopAlternate