Loupe - Log - Monitor - Resolve
Gibraltar.Data Namespace / InterprocessLockManager Class / QueryLockAvailable Method
The object that is querying the lock (useful for debugging purposes)
The fully qualified path to the directory containing the index file of the repository
The name of the lock to query (locks are a combination of index and this name)

In This Topic
    QueryLockAvailable Method
    In This Topic
    Query whether a particular lock is available without holding on to it.
    Syntax
    'Declaration
     
    
    Public Shared Function QueryLockAvailable( _
       ByVal requester As Object, _
       ByVal indexPath As String, _
       ByVal lockName As String _
    ) As Boolean
    public static bool QueryLockAvailable( 
       object requester,
       string indexPath,
       string lockName
    )

    Parameters

    requester
    The object that is querying the lock (useful for debugging purposes)
    indexPath
    The fully qualified path to the directory containing the index file of the repository
    lockName
    The name of the lock to query (locks are a combination of index and this name)

    Return Value

    True if the lock could have been obtained. False if the lock could not be obtained without waiting.
    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