AcquireLock(TKey,TValue,Boolean) Method
See Also 
SourceCode.Threading Namespace > LockManagerBase<TKey,TValue> Class > AcquireLock Method : AcquireLock(TKey,TValue,Boolean) Method



id
item
createItem

Glossary Item Box

Syntax

Visual Basic (Declaration)  
Public Overloads Function AcquireLock( _
   ByVal id As TKey, _
   ByVal item As TValue, _
   ByVal createItem As Boolean _
) As LockSession(Of TKey,TValue)
Visual Basic (Usage) Copy Code
Dim instance As LockManagerBase(Of TKey,TValue)
Dim id As TKey
Dim item As TValue
Dim createItem As Boolean
Dim value As LockSession(Of TKey,TValue)
 
value = instance.AcquireLock(id, item, createItem)
C#  
public LockSession<TKey,TValue> AcquireLock( 
   TKey id,
   TValue item,
   bool createItem
)
C++/CLI  
public:
LockSession<TKey^,TValue^>^ AcquireLock( 
   TKey^ id,
   TValue^ item,
   bool createItem
) 

Parameters

id
item
createItem

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