Returns a synchronized (thread-safe) wrapper for the Hashtable.
[Visual Basic] Public Shared Function Synchronized( _ ByVal table As Hashtable _ ) As Hashtable [C#] public static Hashtable Synchronized( Hashtable table ); [C++] public: static Hashtable* Synchronized( Hashtable* table ); [JScript] public static function Synchronized( table : Hashtable ) : Hashtable;
A synchronized (thread-safe) wrapper for the Hashtable.
Exception Type | Condition |
---|---|
ArgumentNullException | table is a null reference (in Visual Basic Nothing). |
To guarantee the thread-safety of the Hashtable, all operations must be done through this wrapper only.
Hashtable Class | Hashtable Members | System.Collections Namespace | IsSynchronized | SyncRoot