Recognizer オブジェクトがサポートするプロパティを表す Guid 型の配列を取得します。
名前空間 : Microsoft.Ink
アセンブリ : Microsoft.Ink (Microsoft.Ink.dll 内)
構文
'宣言
Public ReadOnly Property SupportedProperties As Guid()
'使用
Dim instance As Recognizer
Dim value As Guid()
value = instance.SupportedProperties
public Guid[] SupportedProperties { get; }
public:
property array<Guid>^ SupportedProperties {
array<Guid>^ get ();
}
/** @property */
public Guid[] get_SupportedProperties()
public function get SupportedProperties () : Guid[]
プロパティ値
型 : array<System.Guid[]
Recognizer オブジェクトがサポートするプロパティ。
解説
認識エンジンは、行メトリックス、行番号、信頼性レベルなどをサポートします。認識エンジンがサポートするプロパティの全一覧については、RecognitionProperty オブジェクトを参照してください。
例
この例では、ドイツ語 (言語 ID 1031)、RecognizerCapabilities 機能 LinedInput、および ConfidenceLevel をサポートする最初の Recognizer が、選択された Recognizer オブジェクト変数に割り当てられます。
Dim selectedRecognizer As Recognizer = Nothing
Dim allRecognizers As Recognizers = New Recognizers()
For Each oneReco As Recognizer In allRecognizers
' if we haven't found the one we want yet
If Not selectedRecognizer Is Nothing Then
' if supports LinedInput
If (oneReco.Capabilities And RecognizerCapabilities.LinedInput) <> 0 Then
For Each langID As Short In oneReco.Languages
' if supports German (1031)
If langID = 1031 Then
For Each propertyGuid As Guid In oneReco.SupportedProperties
' if supports ConfidenceLevel
If propertyGuid = RecognitionProperty.ConfidenceLevel Then
' assign selected
selectedRecognizer = oneReco
End If
Next
End If
Next
End If
End If
Next
Recognizer selectedRecognizer = null;
Recognizers allRecognizers = new Recognizers();
foreach (Recognizer oneReco in allRecognizers)
{
// if we haven't found the one we want yet
if (null == selectedRecognizer)
{
// if supports LinedInput
if ((oneReco.Capabilities & RecognizerCapabilities.LinedInput) != 0)
{
foreach (short langID in oneReco.Languages)
{
// if supports German (1031)
if (langID == 1031)
{
foreach (Guid propertyGuid in oneReco.SupportedProperties)
{
// if supports ConfidenceLevel
if (propertyGuid == RecognitionProperty.ConfidenceLevel)
{
// assign selected
selectedRecognizer = oneReco;
}
}
}
}
}
}
}
プラットフォーム
Windows Vista
.NET Framework および .NET Compact Framework では、各プラットフォームのすべてのバージョンはサポートしていません。サポートされているバージョンについては、「.NET Framework システム要件」を参照してください。
バージョン情報
.NET Framework
サポート対象 : 3.0