adTempus API
ArcanaDevelopment.adTempus.Shared Namespace / TryLock Class / TryLock Constructor / TryLock Constructor(Object,Int32)
The object to lock
The maximum number of milliseconds to wait.

In This Topic
    TryLock Constructor(Object,Int32)
    In This Topic
    Tries to obtain a lock
    Syntax
    'Declaration
     
    
    Public Function New( _
       ByVal obj As Object, _
       ByVal millisecondsTimeout As Integer _
    )
    public TryLock( 
       object obj,
       int millisecondsTimeout
    )

    Parameters

    obj
    The object to lock
    millisecondsTimeout
    The maximum number of milliseconds to wait.
    Remarks
    On return, HasLock indicates whether the lock was obtained.
    See Also