Share via


COleDataObject::Release

Call this function to release ownership of the IDataObject object that was previously associated with the COleDataObject object.

void Release( );

Remarks

The IDataObject was associated with the COleDataObject by calling Attach or AttachClipboard explicitly or by the framework. If the bAutoRelease parameter of Attach is FALSE, the IDataObject object will not be released. In this case, the caller is responsible for releasing the IDataObject by calling IUnknown::Release.

Requirements

Header: afxole.h

See Also

Reference

COleDataObject Class

Hierarchy Chart

COleDataObject::Attach

COleDataObject::COleDataObject

COleDataObject::Detach

Other Resources

COleDataObject Members