The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
BlockingCollection<T>::TryAdd Method
.NET Framework (current version)
Tries to add the specified item to the BlockingCollection<T>.
Assembly: System (in System.dll)
| Name | Description | |
|---|---|---|
![]() | TryAdd(T) | Tries to add the specified item to the BlockingCollection<T>. |
![]() | TryAdd(T, Int32) | Tries to add the specified item to the BlockingCollection<T> within the specified time period. |
![]() | TryAdd(T, Int32, CancellationToken) | Tries to add the specified item to the BlockingCollection<T> within the specified time period, while observing a cancellation token. |
![]() | TryAdd(T, TimeSpan) | Tries to add the specified item to the BlockingCollection<T>. |
Show:
