Gemstone Threading Library
Show/Hide TOC

# DoubleBufferedQueue T TryClear Method

Attempts to enqueue a collection of items into the double-buffered queue.

## Definition

Namespace: Gemstone.Threading.Collections
Assembly: Gemstone.Threading (in Gemstone.Threading.dll) Version: 1.0.159 -- Release Build+94b67ea5187267d7edb4458b634b6580ba7dbb78
C#
View Source Request Example

    public bool TryClear()

VB
View Source Request Example

    Public Function TryClear As Boolean

C++
View Source Request Example

    public:
    bool TryClear()

JavaScript
View Source Request Example

    function TryClear();

#### Return Value

Boolean
True if the items were successfully enqueued; false otherwise.

## See Also

#### Reference

DoubleBufferedQueueT Class
Gemstone.Threading.Collections Namespace