ConcurrentQueue<T>.IProducerConsumerCollection<T>.TryAdd Method (T)
Attempts to add an object to the System.Collections.Concurrent.IProducerConsumerCollection<T>.
Assembly: mscorlib (in mscorlib.dll)
The object to add to the System.Collections.Concurrent.IProducerConsumerCollection<T>. The value can be a null reference (Nothing in Visual Basic) for reference types.
Return ValueType: System.Boolean
true if the object was added successfully; otherwise, false.
Available since 8
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Available since 8.1