ArcObjects Library Reference (System)  

IAppLockMgr.SetLock Method

Places a lock within the lock manager.

[Visual Basic .NET]
Public Sub SetLock ( _
    ByVal cookie As Integer, _
    ByVal FileName As String, _
    ByVal lockMgrType As esriLockMgrType _
)
[C#]
public void SetLock (
    int cookie,
    string FileName,
    esriLockMgrType lockMgrType
);
[C++]
HRESULT SetLock(
  long cookie,
  BSTR FileName,
  esriLockMgrType lockMgrType
);
[C++]

Parameters

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

  lockMgrType is a parameter of type esriLockMgrType

Product Availability

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

See Also

IAppLockMgr Interface