Returns a synchronized (thread-safe) wrapper
for the specified NameValueCollection.
Namespace: CodeSmith.CustomPropertiesAssembly: CodeSmith.CustomProperties (in CodeSmith.CustomProperties.dll) Version: 6.0.0.0 (7.0.0.15127)
Syntax
C# |
---|
public static NameValueCollection Synchronized( NameValueCollection collection ) |
Visual Basic |
---|
Public Shared Function Synchronized ( collection As NameValueCollection ) As NameValueCollection |
Parameters
- collection
- Type: CodeSmith.CustomProperties..::..NameValueCollection
The NameValueCollection to synchronize.
Return Value
Type: NameValueCollectionA synchronized (thread-safe) wrapper around collection.
Remarks
Please refer to Synchronized(IList) for details.
Exceptions
Exception | Condition |
---|---|
System..::..ArgumentNullException | collection is a null reference. |