次の方法で共有


Module::ReleaseNotifier クラス

モジュール内の最後のオブジェクトが解放されると、イベント ハンドラーを呼び出します。

構文

class ReleaseNotifier;

メンバー

パブリック コンストラクター

名前 説明
Module::ReleaseNotifier::~ReleaseNotifier Module::ReleaseNotifier クラスの現在のインスタンスの初期化を解除します。
Module::ReleaseNotifier::ReleaseNotifier Module::ReleaseNotifier クラスの新しいインスタンスを初期化します。

パブリック メソッド

名前 説明
Module::ReleaseNotifier::Invoke 実装された場合、モジュール内の最後のオブジェクトが解放されると、イベント ハンドラーを呼び出します。
Module::ReleaseNotifier::Release Module::ReleaseNotifier オブジェクトが true のパラメーターを使用して構築された場合は、現在のオブジェクトを削除します。

継承階層

ReleaseNotifier

必要条件

ヘッダー: module.h

名前空間: Microsoft::WRL

Module::ReleaseNotifier::~ReleaseNotifier

Module::ReleaseNotifier クラスの現在のインスタンスの初期化を解除します。

WRL_NOTHROW virtual ~ReleaseNotifier();

Module::ReleaseNotifier::Invoke

実装された場合、モジュール内の最後のオブジェクトが解放されると、イベント ハンドラーを呼び出します。

virtual void Invoke() = 0;

Module::ReleaseNotifier::Release

Module::ReleaseNotifier オブジェクトが true のパラメーターを使用して構築された場合は、現在のオブジェクトを削除します。

void Release() throw();

Module::ReleaseNotifier::ReleaseNotifier

Module::ReleaseNotifier クラスの新しいインスタンスを初期化します。

ReleaseNotifier(bool release) throw();

パラメーター

release
Release メソッドが呼び出されたときにこのインスタンスを削除する場合は true です。このインスタンスを削除しない場合は false です。