NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Queue.Synchronized

Returns a Queue wrapper that is synchronized (thread-safe).

[Visual Basic]
Public Shared Function Synchronized( _
   ByVal q As Queue _
) As Queue
[C#]
public static Queue Synchronized(
   Queue q
);
[C++]
public: static Queue* Synchronized(
   Queue* q
);
[JScript]
public static function Synchronized(
   q : Queue
) : Queue;

Parameters

q
The Queue to synchronize.

Return Value

A Queue wrapper that is synchronized (thread-safe).

Exceptions

Exception Type Condition
ArgumentNullException q is a null reference (in Visual Basic Nothing).

Remarks

To guarantee the thread-safety of the Queue, all operations must be done through this wrapper only.

See Also

Queue Class | Queue Members | System.Collections Namespace | IsSynchronized | SyncRoot