The BeginAcquireMultipleConnections method enables the acquisition of multiple connections.
Connections Collection |
Connections.BeginAcquireMultipleConnections()
Part | Description |
---|---|
Connections | Expression that evaluates to an object in the Applies To list |
The BeginAcquireMultipleConnections method enables the acquisition of connections by acquiring exclusive ownership of the Connections collection’s synchronization object.
HRESULT BeginAcquireMultipleConnections();
Note If a task needs to acquire more than one connection, call this method, check the Connection.InUse property, and then use the AcquireConnection method for each connection. Then, call the EndAcquireMultipleConnections method to avoid deadlocks.