Add an item to the server FIFO queue.
This method has been deprecated and may not be included in future versions of the control.
Syntax
object.Enqueue( ItemData )
Parameters
- ItemData
- Any valid data type that can be represented by a Variant.
A copy of the data is created on private heap managed by the server.
The memory for that item is released when the item is retrieved from
the queue, the queue is cleared or the server is stopped.
Return Value
If the method is successful, it will return a value of True. If no
server has been started, or the item cannot be added to the queue,
the method will return a value of False.
Remarks
The Enqueue method adds the specified item data to the
server queue. To obtain the number of items in the server queue, use the
QueueCount property. To remove all items from the queue, use
the ClearQueue method. To retrieve the next item from the
queue, use the Dequeue method. The server queue methods are
thread-safe and each update to the queue is an atomic operation. This
enables an application to easily exchange information with other
client sessions.
Note that queued items are only available while the server is
active. Once the server has been stopped, any queued items are
automatically removed and the memory allocated for the queue is
released.
See Also
|