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