InkRecognizerBaseCollection.IsSynchronized 屬性
取得值,這個值表示是否同步存取集合 (具備安全執行緒)。
命名空間: System.Windows.Ink.AnalysisCore
組件: IACore (在 IACore.dll 中)
語法
'宣告
Public ReadOnly Property IsSynchronized As Boolean
'用途
Dim instance As InkRecognizerBaseCollection
Dim value As Boolean
value = instance.IsSynchronized
public bool IsSynchronized { get; }
public:
virtual property bool IsSynchronized {
bool get () sealed;
}
/** @property */
public final boolean get_IsSynchronized()
public final function get IsSynchronized () : boolean
屬性值
型別:System.Boolean
所有情況下都是 false。
實作
備註
這個集合會實作 System.Collections.ICollection 介面。如需這個屬性的詳細資訊,請參閱 ICollection.IsSynchronized。
範例
如果 InkRecognizerBaseCollection (theInkRecognizerCollection) 不是空集合,這個範例會取得這個集合中的第一個辨識器。這個範例還會檢查集合是否同步。
' Create a collection of the recognizers installed on this Tablet PC.
Dim theInkRecognizerCollection As InkRecognizerBaseCollection = _
theInkAnalyzerBase.GetInkRecognizersByPriority()
' Check if there are recognizers in the collection.
If (0 < theInkRecognizerCollection.Count) Then
' Get the first recognizer in the collection.
Dim theFirstInkRecognizer As System.Windows.Ink.AnalysisCore.InkRecognizerBase = _
theInkRecognizerCollection.Item(0)
' Check if the recognizers collection is synchronized.
If (theInkRecognizerCollection.IsSynchronized) Then
' Insert code here.
End If
End If
// Create a collection of the recognizers installed on this Tablet PC.
InkRecognizerBaseCollection theInkRecognizerCollection =
theInkAnalyzerBase.GetInkRecognizersByPriority();
// Check if there are recognizers in the collection.
if (0 < theInkRecognizerCollection.Count)
{
// Get the first recognizer in the collection.
InkRecognizerBase theFirstInkRecognizer =
theInkRecognizerCollection[0];
// Insert code here.
}
// Check if the recognizers collection is synchronized.
if (theInkRecognizerCollection.IsSynchronized)
{
// Insert code here.
}
平台
Windows Vista, Windows XP SP2, Windows Server 2003
.NET Framework 和 .NET Compact Framework 並不支援各種平台的所有版本。如需支援平台版本的相關資訊,請參閱 .NET Framework 系統需求。
版本資訊
.NET Framework
支援版本:3.0
請參閱
參考
InkRecognizerBaseCollection 類別