ArcObjects Library Reference (System)  

IAfLockMgr.CheckLock Method

Indicates if the specified lock type can be sucessfully set on the filename.

[Visual Basic .NET]
Public Function CheckLock ( _
    ByVal FileName As String, _
    ByVal lockMgrType As esriLockMgrType _
) As Boolean
[C#]
public bool CheckLock (
    string FileName,
    esriLockMgrType lockMgrType
);
[C++]
HRESULT CheckLock(
  BSTR FileName,
  esriLockMgrType lockMgrType,
  VARIANT_BOOL* succeeded
);
[C++]

Parameters

FileName [in]   FileName is a parameter of type BSTR lockMgrType [in]

  lockMgrType is a parameter of type esriLockMgrType

succeeded [out, retval]   succeeded is a parameter of type VARIANT_BOOL

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

See Also

IAfLockMgr Interface