System.Classes.TInterfacedPersistent._Release

提供: RAD Studio API Documentation
移動先: 案内検索

Delphi

function _Release: Integer; stdcall;

C++

int __stdcall _Release();

プロパティ

種類 可視性 ソース ユニット
function protected
System.Classes.pas
System.Classes.hpp
System.Classes TInterfacedPersistent


説明

インターフェース化オブジェクトのインターフェースの参照カウントをデクリメントします。

___Release は,IInterface のメソッドである ___Release を実装します。IInterface メソッドの ___Release は,インターフェースの参照カウントをデクリメントし,現在の参照カウントを返します。一部のインターフェースでは,これで参照カウントがゼロになったときに,オブジェクトがそれ自体を解放します。

インターフェース化持続的オブジェクトが Owner を保持し,そのオーナーがインターフェースをサポートしている場合は,___Release メソッドは単純に Owner の ___Release メソッドを呼び出します。それ以外の場合,-1 を返します。

関連項目