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

In This Topic
    TryLock Constructor(Object,Int32,ILog,String)
    In This Topic
    Tries to obtain a lock and logs an error message if the lock cannot be obtained
    Syntax
    'Declaration
     
    
    Public Function New( _
       ByVal obj As Object, _
       ByVal millisecondsTimeout As Integer, _
       ByVal log As log4net.ILog, _
       ByVal objectName As String _
    )
    public TryLock( 
       object obj,
       int millisecondsTimeout,
       log4net.ILog log,
       string objectName
    )

    Parameters

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