InkRecognizerCollection.SyncRoot - свойство
Обновлен: Ноябрь 2007
Gets an object that can be used to synchronize access to the collection.
Пространство имен: System.Windows.Ink
Сборка: IAWinFX (в IAWinFX.dll)
Синтаксис
'Декларация
Public ReadOnly Property SyncRoot As Object
'Применение
Dim instance As InkRecognizerCollection
Dim value As Object
value = instance.SyncRoot
public Object SyncRoot { get; }
public:
virtual property Object^ SyncRoot {
Object^ get () sealed;
}
/** @property */
public final Object get_SyncRoot()
public final function get SyncRoot () : Object
Значение свойства
Тип: System.Object
An object that can be used to synchronize access to the collection.
Реализации
Заметки
This collection implements the ICollection interface. For more information about this property, see SyncRoot.
Примеры
The following example shows how to lock the InkRecognizerCollection, theInkRecognizerCollection, while the contents of the collection are processed.
' Lock the InkRecognizerCollection.
SyncLock theInkRecognizers.SyncRoot
' Iterate over the locked collection.
For Each theInkRecognizer As InkRecognizer In theInkRecognizers
' Insert code here.
Next theInkRecognizer
End SyncLock
// Lock the InkRecognizerCollection.
lock (theInkRecognizers.SyncRoot)
{
// Iterate over the locked collection.
foreach (InkRecognizer theInkRecognizer
in theInkRecognizers)
{
// Insert code here.
}
}
Платформы
Windows Vista
Среды .NET Framework и .NET Compact Framework поддерживают не все версии каждой платформы. Поддерживаемые версии перечислены в разделе Требования к системе для .NET Framework.
Сведения о версии
.NET Framework
Поддерживается в версии: 3.0