Freigeben über


Recognizer.Id-Eigenschaft

Ruft die ID des Recognizer-Objekts ab.

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

Syntax

'Declaration
Public ReadOnly Property Id As Guid
'Usage
Dim instance As Recognizer
Dim value As Guid

value = instance.Id
public Guid Id { get; }
public:
property Guid Id {
    Guid get ();
}
/** @property */
public Guid get_Id()
public function get Id () : Guid

Eigenschaftenwert

Typ: System.Guid
Die ID des Recognizer-Objekts.

Hinweise

Diese Eigenschaft ist in der Microsoft.Ink-Assembly von Version 6.0 neu.

Beispiele

In diesem Beispiel werden zwei RecognizerContext-Objekte auf unterschiedliche Weise instanziiert. Beide RecognizerContext-Objekte besitzen eine Zuordnung zum Standard-Recognizer, wie durch einen Vergleich der beiden Id-Eigenschaften festgestellt werden kann.

' create a new RecognizerContext object
Dim mRecognizerContext1 As RecognizerContext = New RecognizerContext()
' When you create a new RecognizerContext object via the .ctor
' as shown above, it is associated with the default Recognizer.
'
' You could also obtain the RecognizerContext object in this manner:
Dim allRecognizers As Recognizers = New Recognizers()
Dim defaultRecognizer As Recognizer = allRecognizers.GetDefaultRecognizer()
Dim mRecognizerContext2 As RecognizerContext = defaultRecognizer.CreateRecognizerContext()
' same recognizer either way
Dim thisIsTrue As Boolean = (mRecognizerContext1.Recognizer.Id = mRecognizerContext2.Recognizer.Id)
// create a new RecognizerContext object
RecognizerContext mRecognizerContext1 = new RecognizerContext();
// When you create a new RecognizerContext object via the .ctor
// as shown above, it is associated with the default Recognizer.
//
// You could also obtain the RecognizerContext object in this manner:
Recognizers allRecognizers = new Recognizers();
Recognizer defaultRecognizer = allRecognizers.GetDefaultRecognizer();
RecognizerContext mRecognizerContext2 = defaultRecognizer.CreateRecognizerContext();
// same recognizer either way
bool thisIsTrue = (mRecognizerContext1.Recognizer.Id == mRecognizerContext2.Recognizer.Id);

Plattformen

Windows Vista

.NET Framework und .NET Compact Framework unterstützen nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen für .NET Framework.

Versionsinformationen

.NET Framework

Unterstützt in: 3.0

Siehe auch

Referenz

Recognizer-Klasse

Recognizer-Member

Microsoft.Ink-Namespace