Поделиться через


RecognitionResult - класс

Обновлен: Ноябрь 2007

Represents the result of the recognition. The results of recognizing handwritten ink are returned in a RecognitionResult object.

Пространство имен:  Microsoft.Ink
Сборка:  Microsoft.Ink (в Microsoft.Ink.dll)

Синтаксис

'Декларация
<PermissionSetAttribute(SecurityAction.InheritanceDemand, Name := "FullTrust")> _
Public Class RecognitionResult
'Применение
Dim instance As RecognitionResult
[PermissionSetAttribute(SecurityAction.InheritanceDemand, Name = "FullTrust")]
public class RecognitionResult
[PermissionSetAttribute(SecurityAction::InheritanceDemand, Name = L"FullTrust")]
public ref class RecognitionResult
/** @attribute PermissionSetAttribute(SecurityAction.InheritanceDemand, Name = "FullTrust") */
public class RecognitionResult
public class RecognitionResult

Заметки

RecognitionAlternate objects, or alternate, are created from the result. The best, or top, alternate is the one that is used by the default in the result. However, you can use the methods of the RecognitionResult object to specify which alternates to use in the result.

System performance can suffer if recognition results are automatically assigned to every collection of stroke. Therefore, by default, results are not attached to a Strokes collection. You must call the SetResultOnStrokes method to assign results to a Strokes collection.

The only way to persist recognition results is to call SetResultOnStrokes and then add this Strokes collection to the CustomStrokes collection on the Ink object.

Not all recognizers set the TopConfidence property. When an application attempts to access a property that is not set by the recognizer, an argument exception is thrown.

ms552537.alert_note(ru-ru,VS.90).gifПримечание.

The various handwriting recognizers shipped from Microsoft in both recognizers of Latin script and recognizers of East Asian languages can sometimes produce the Unicode value 0xFFFF as the recognition result. This occurs when the recognizer is unable to match a piece of ink with any valid character. The 0xFFFF code point is valid UCS-2, but not allowed in UTF-8. An application that converts recognition results to UTF-8, should replace 0xFFFF with some other code point, for example, 0xFFFD.

Иерархия наследования

System.Object
  Microsoft.Ink.RecognitionResult

Потокобезопасность

Любые открытые члены этого типа, объявленные как static (Shared в Visual Basic), являются потокобезопасными. Потокобезопасность членов экземпляров не гарантируется.

Платформы

Windows Vista

Среды .NET Framework и .NET Compact Framework поддерживают не все версии каждой платформы. Поддерживаемые версии перечислены в разделе Требования к системе для .NET Framework.

Сведения о версии

.NET Framework

Поддерживается в версии: 3.0

См. также

Ссылки

RecognitionResult - члены

Microsoft.Ink - пространство имен

CustomStrokes

CustomStrokes

Ink

Recognizer

RecognizerContext

Strokes