IServerAgentConnection.GetConnectionLocks

Syntax:

GetConnectionLocks(<Cluster>, <Connection>)

Parameters:

<Cluster> (required)

Type: IClusterInfo.
A server cluster used to obtain locks. A cluster array can be obtained by the GetClusters method.

<Connection> (required)

Type: IConnectionShort.
A description of the connection that has set the obtained locks. An array of connection descriptions can be obtained by the GetConnections method.

Returned value:

Type: COMSafeArray.
Array of object locks set by cluster clients. Each lock is represented by an object with the IObjectLock interface.

Description:

Obtains an array of connection object locks.
There can be three types of locks:
  • Infobase locks are set when client application, COM-connections and other cluster clients are launched;
  • objects locks are set when 1C:Enterprise objects are edited interactively or Lock methods are called;
  • Number locks are set by 1C:Enterprise when a new number (code) is obtained automatically.

Availability:

Integration.

    

1C:Enterprise Developer's Community