Edit

Share via


Module::ReleaseNotifier Class

Invokes an event handler when the last object in a module is released.

Syntax

class ReleaseNotifier;

Members

Public Constructors

Name Description
Module::ReleaseNotifier::~ReleaseNotifier Deinitializes the current instance of the Module::ReleaseNotifier class.
Module::ReleaseNotifier::ReleaseNotifier Initializes a new instance of the Module::ReleaseNotifier class.

Public Methods

Name Description
Module::ReleaseNotifier::Invoke When implemented, calls an event handler when the last object in a module is released.
Module::ReleaseNotifier::Release Deletes the current Module::ReleaseNotifier object if the object was constructed with a parameter of true.

Inheritance Hierarchy

ReleaseNotifier

Requirements

Header: module.h

Namespace: Microsoft::WRL

Module::ReleaseNotifier::~ReleaseNotifier

Deinitializes the current instance of the Module::ReleaseNotifier class.

WRL_NOTHROW virtual ~ReleaseNotifier();

Module::ReleaseNotifier::Invoke

When implemented, calls an event handler when the last object in a module is released.

virtual void Invoke() = 0;

Module::ReleaseNotifier::Release

Deletes the current Module::ReleaseNotifier object if the object was constructed with a parameter of true.

void Release() throw();

Module::ReleaseNotifier::ReleaseNotifier

Initializes a new instance of the Module::ReleaseNotifier class.

ReleaseNotifier(bool release) throw();

Parameters

release
true to delete this instance when the Release method is called; false to not delete this instance.