Unlock Method

DTS Programming

DTS Programming

Unlock Method

The Unlock method unlocks a GlobalVariable2 object that had been previously locked with the Lock method.

Applies To
GlobalVariable2 Object
Syntax

globalvar.Unlock

Part Description
globalvar Expression that evaluates to a GlobalVariable2 object

Remarks

If the global variable is not already locked, the Unlock method does nothing, and no error occurs.

If the global variable was locked from a different thread than that which issued the Unlock method, an error occurs and the global variable is not unlocked.

Prototype (C/C++)

HRESULT Unlock( void );

See Also

Adding DTS Lookups and Global Variables

Lock Method