ConcurrentStack<T>.TryPop(T) Method  
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Attempts to pop and return the object at the top of the ConcurrentStack<T>.
public:
 bool TryPop([Runtime::InteropServices::Out] T % result);public bool TryPop(out T result);member this.TryPop : 'T -> boolPublic Function TryPop (ByRef result As T) As BooleanParameters
- result
- T
When this method returns, if the operation was successful, result contains the object removed. If no object was available to be removed, the value is unspecified.
Returns
true if an element was removed and returned from the top of the ConcurrentStack<T> successfully; otherwise, false.
Remarks
For a code example, see ConcurrentStack<T>.