Partager via


RecognizerContextRecognitionEventArgs.RecognizerContextRecognitionEventArgs Constructor

RecognizerContextRecognitionEventArgs.RecognizerContextRecognitionEventArgs Constructor

Initializes a new instance of the RecognizerContextRecognitionEventArgs class.

Definition

Visual Basic .NET Public Sub RecognizerContextRecognitionEventArgs( _
ByVal text As String, _
ByVal customData As Object, _
ByVal recognitionStatus As RecognitionStatus _
)
C# public RecognizerContextRecognitionEventArgs(
string text,
object customData,
RecognitionStatus recognitionStatus
);
Managed C++ public: RecognizerContextRecognitionEventArgs(
String *text,
Object *customData,
RecognitionStatus *recognitionStatus
);

Parameters

> > >
text System.String. The RecognitionResult.
customData System.Object. The custom data supplied by the application.
recognitionStatus Microsoft.Ink.RecognitionStatus. One of the values from the RecognitionStatus enumeration value that indicates the recognition status as of the most recent recognition result.

NoError0 Indicates no errors occurred.
Interrupted1 Indicates the recognition was interrupted by a call to StopBackgroundRecognition.
ProcessFailed2 Indicates the ink recognition process failed.
InkAddedFailed4 Indicates the ink could not be added.
SetAutoCompletionModeFailed8 Indicates the character Autocomplete mode could not be set.
SetStrokesFailed16 Indicates the strokes could not be set.
SetGuideFailed32 Indicates the recognition guide could not be set.
SetFlagsFailed64 Indicates the flags could not be set.
SetFactoidFailed128 Indicates the factoid could not be set.
SetPrefixSuffixFailed256 Indicates the suffix or the prefix could not be set.
SetWordListFailed512 Indicates the word list could not be set.

Remarks

When you call either the BackgroundRecognize or BackgroundRecognizeWithAlternates method, you can pass in custom data that becomes the customData parameter for the RecognizerContextRecognitionEventArgs constructor.

See Also