Windows apps
Collapse the table of content
Expand the table of content
Information
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>.

Namespace:   System.Collections.Concurrent
Assembly:  System (in System.dll)

NameDescription
System_CAPS_pubmethodTryAdd(T)

Tries to add the specified item to the BlockingCollection<T>.

System_CAPS_pubmethodTryAdd(T, Int32)

Tries to add the specified item to the BlockingCollection<T> within the specified time period.

System_CAPS_pubmethodTryAdd(T, Int32, CancellationToken)

Tries to add the specified item to the BlockingCollection<T> within the specified time period, while observing a cancellation token.

System_CAPS_pubmethodTryAdd(T, TimeSpan)

Tries to add the specified item to the BlockingCollection<T>.

Return to top
Show:
© 2017 Microsoft