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



id
lockItem

Glossary Item Box

Syntax

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

Parameters

id
lockItem

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