System.TInterfacedObject.RefCount
Delphi
property RefCount: Integer read GetRefCount;
C++
__property int RefCount = {read=FRefCount, nodefault};
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
property | public | System.pas systobj.h |
System | TInterfacedObject |
説明
オブジェクトに現在依存しているインターフェースポインタの数を示します。
RefCount プロパティは,オブジェクトの寿命を定義します。RefCount プロパティが 0 になると,オブジェクトは破棄されます。
RefCount プロパティは _AddRef メソッドを呼び出すとインクリメントされ,_Release メソッドを呼び出すとデクリメントされます。