ArcObjects Library Reference (System)  

IAfLockMgr.SetLock Method

Places the selected lock type on the given filename.

[Visual Basic .NET]
Public Function SetLock ( _
    ByVal FileName As String, _
    ByVal lockMgrType As esriLockMgrType _
) As Boolean
[C#]
public bool SetLock (
    string FileName,
    esriLockMgrType lockMgrType
);
[C++]
HRESULT SetLock(
  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