Partager via


COleSafeArray::Lock

Increments the lock count of an array and place a pointer to the array data in the array descriptor.

void Lock( );

Remarks

On error, it throws a COleException.

The pointer in the array descriptor is valid until Unlock is called. Calls to Lock can be nested; an equal number of calls to Unlock are required.

An array cannot be deleted while it is locked.

Requirements

Header: afxdisp.h

See Also

Reference

COleSafeArray Class

Hierarchy Chart

COleSafeArray::Unlock