CSharpTest.Net
Acquire Method
See Also  Send Feedback Download Help File
CSharpTest.Net.Library Assembly > CSharpTest.Net.Synchronization Namespace > WriteLock Structure : Acquire Method

lck
timeout

Glossary Item Box

Acquires the lock within the timeout or throws TimeoutException

Syntax

Visual Basic (Declaration) 
Public Shared Function Acquire( _
   ByVal lck As ILockStrategy, _
   ByVal timeout As Integer _
) As WriteLock
C# 
public static WriteLock Acquire( 
   ILockStrategy lck,
   int timeout
)

Parameters

lck
timeout

Exceptions

ExceptionDescription
System.TimeoutExceptionThe exception that is thrown when the time allotted for a process or operation has expired.

Requirements

Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7

See Also

Generated with Document! X 2011 by Innovasys