Поделиться через


InkRecognizerBaseCollection.IsSynchronized - свойство

Обновлен: Ноябрь 2007

Gets a value that indicates whether access to the collection is synchronized (thread safe).

Пространство имен:  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 in all cases.

Реализации

ICollection.IsSynchronized

Заметки

This collection implements the System.Collections.ICollection interface. For more information about this property, see ICollection.IsSynchronized.

Примеры

This example gets the first recognizer in the InkRecognizerBaseCollection, theInkRecognizerCollection, if the collection is not empty. This example also checks whether the collection is synchronized.

' 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 с пакетом обновления 2 (SP2), Windows Server 2003

Среды .NET Framework и .NET Compact Framework поддерживают не все версии каждой платформы. Поддерживаемые версии перечислены в разделе Требования к системе для .NET Framework.

Сведения о версии

.NET Framework

Поддерживается в версии: 3.0

См. также

Ссылки

InkRecognizerBaseCollection Класс

InkRecognizerBaseCollection - члены

System.Windows.Ink.AnalysisCore - пространство имен