Lock Method
See Also 
SourceCode.Threading Namespace > LockSession<TKey,TValue> Class : Lock Method



Glossary Item Box

Syntax

Visual Basic (Declaration)  
Public Overridable Function Lock() As Boolean
Visual Basic (Usage) Copy Code
Dim instance As LockSession(Of TKey,TValue)
Dim value As Boolean
 
value = instance.Lock()
C#  
public virtual bool Lock()
C++/CLI  
public:
virtual bool Lock(); 

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