ConcurrentQueue<T>.IProducerConsumerCollection<T>.TryTake Method (T)
Attempts to remove and return an object from the System.Collections.Concurrent.IProducerConsumerCollection<T>.
Assembly: mscorlib (in mscorlib.dll)
When this method returns, if the operation was successful, item contains the object removed. If no object was available to be removed, the value is unspecified.
Return ValueType: System.Boolean
true if an element was removed and returned succesfully; otherwise, false.
Available since 8
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Available since 8.1