ConcurrentStack<'T>.TryPop Method ('T)
.NET Framework (current version)
Attempts to pop and return the object at the top of the ConcurrentStack<'T>.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- result
-
Type:
'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.
Return Value
Type: System.Booleantrue if an element was removed and returned from the top of the ConcurrentStack<'T> successfully; otherwise, false.
For a code example, see ConcurrentStack<'T>.
Universal Windows Platform
Available since 8
.NET Framework
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Windows Phone
Available since 8.1
Available since 8
.NET Framework
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Windows Phone
Available since 8.1
Show: