The SynchronizedSet type exposes the following members.
Properties
Name | Description | |
---|---|---|
![]() | Count |
The number of elements contained in this collection.
(Overrides Set..::..Count.) |
![]() | IsEmpty |
Returns trueTruetruetrue (True in Visual Basic) if this set contains no elements.
(Overrides Set..::..IsEmpty.) |
![]() | IsSynchronized |
Returns trueTruetruetrue (True in Visual Basic), indicating that this object is thread-safe. The exception to this
is enumeration, which is inherently not thread-safe. Use the SyncRoot object to
lock this object for the entire duration of the enumeration.
(Overrides Set..::..IsSynchronized.) |
![]() | SyncRoot |
Returns an object that can be used to synchronize the set between threads.
(Overrides Set..::..SyncRoot.) |