TryTake Method
See Also 
SourceCode.Collections.Concurrent Namespace > LimitedPriorityProducerConsumerCollection<TPriority,TValue> Class : TryTake Method



item

Glossary Item Box

Syntax

Visual Basic (Declaration)  
Public Function TryTake( _
   ByRef item As TValue _
) As Boolean
Visual Basic (Usage) Copy Code
Dim instance As LimitedPriorityProducerConsumerCollection(Of TPriority,TValue)
Dim item As TValue
Dim value As Boolean
 
value = instance.TryTake(item)
C#  
public bool TryTake( 
   out TValue item
)
C++/CLI  
public:
bool TryTake( 
   [Out] TValue^ item
) 

Parameters

item

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also