Method Clear
Clear()
Removes all objects from the IQueue.
Declaration
void Clear()
Examples
The following code sample shows how to clear Distributed Queue.
ICache cache = CacheManager.GetCache("demoClusteredCache");
string dataTypeName = "DistributedQueue";
IDistributedQueue<Product> queue = cache.DataTypeManager.GetQueue<Product>(dataTypeName);
queue.Clear();