Visual Basic (Declaration) | |
---|---|
Public Overloads Function AcquireLock( _ ByVal id As TKey, _ ByVal lockItem As TValue _ ) As LockSession(Of TKey,TValue) |
Visual Basic (Usage) | ![]() |
---|---|
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
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