Vcl.OleCtrls.TOleControl._Release
Delphi
function _Release: Integer; stdcall;
C++
HIDESBASE int __stdcall _Release();
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | protected | Vcl.OleCtrls.pas Vcl.OleCtrls.hpp |
Vcl.OleCtrls | TOleControl |
Description
Called when an application releases a component interface.
Vcl.OleCtrls.TOleControl. Release inherits from System.Classes.TComponent._Release. All content below this line refers to System.Classes.TComponent._Release.
Called when an application releases a component interface.
_Release is a basic implementation of the IInterface method, _Release.
_Release returns the resulting value of the reference count for the component's interface.
Note: In all other cases, _Release simply returns –1 and takes no action. This allows the component to implement interfaces where reference counting is not required. More sophisticated components should override _Release to implement reference counting.