RecognitionAlternate オブジェクトの信頼性レベルを指定するグローバル一意識別子 (GUID) を取得します。
名前空間 : Microsoft.Ink
アセンブリ : Microsoft.Ink (Microsoft.Ink.dll 内)
構文
'宣言
Public Shared ReadOnly ConfidenceLevel As Guid
'使用
Dim value As Guid
value = RecognitionProperty.ConfidenceLevel
public static readonly Guid ConfidenceLevel
public:
static initonly Guid ConfidenceLevel
public static final Guid ConfidenceLevel
public static final var ConfidenceLevel : Guid
フィールド値
型 : System.Guid
RecognitionAlternate オブジェクトの信頼性レベルを指定するグローバル一意識別子 (GUID)。
解説
Tablet PC のアプリケーション プログラミング インターフェイス (API) は GUID を使用して、パケット プロパティ、認識プロパティ、描画属性、および一般的なインク プロパティを識別します。これらの GUID は、RecognitionProperty オブジェクトの読み取り専用フィールドとして使用できます。GetPropertyValue メソッドを呼び出すことにより、これらの GUID を使用して RecognitionAlternate オブジェクトのプロパティにアクセスします。
ConfidenceLevel は、認識エンジンが認識結果内に持つ信頼性レベルを指定します。
Microsoft® の認識エンジンの場合、Microsoft 英語 (米国) 手書き認識エンジンと Microsoft ジェスチャ認識エンジンだけが信頼性レベルをサポートします。サード パーティの認識エンジンは、信頼性レベルをサポートしている場合とサポートしていない場合があります。
例
この例では、ドイツ語 (言語 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