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 -> bool
Public Function TryPop (ByRef result As T) As Boolean
Parameters
- 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>.
Applies to
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
.NET