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.Enqueue

Adds an object to the tail of the Queue.

[Visual Basic]
Overridable Public Sub Enqueue( _
   ByVal obj As Object _
)
[C#]
public virtual void Enqueue(
   object obj
);
[C++]
public: virtual void Enqueue(
   Object* obj
);
[JScript]
public function Enqueue(
   obj : Object
);

Parameters

obj
The object to add to the Queue.

Return Value

None.

Exceptions

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

Remarks

This method can be overridden by a derived class.

When the number of elements in the Queue reaches its capacity, the capacity is automatically increased to accommodate more elements.

This method is an O(n) operation.

See Also

Queue Class | Queue Members | System.Collections Namespace | Dequeue | Peek