Module::MethodReleaseNotifier Class

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at Module::MethodReleaseNotifier Class.

Invokes an event handler when the last object in the current module is released. The event handler is specified by an object and its pointer-to-a-method member.

template<  
   typename T  
>  
class MethodReleaseNotifier : public ReleaseNotifier;  

Parameters

T
The type of the object whose member function is the event handler.

Public Constructors

NameDescription
Module::MethodReleaseNotifier::MethodReleaseNotifier ConstructorInitializes a new instance of the Module::MethodReleaseNotifier class.

Public Methods

NameDescription
Module::MethodReleaseNotifier::Invoke MethodCalls the event handler associated with the current Module::MethodReleaseNotifier object.

Protected Data Members

NameDescription
Module::MethodReleaseNotifier::method_ Data MemberHolds a pointer to the event handler for the current Module::MethodReleaseNotifier object.
Module::MethodReleaseNotifier::object_ Data MemberHolds a pointer to the object whose member function is the event handler for the current Module::MethodReleaseNotifier object.

ReleaseNotifier

MethodReleaseNotifier

Header: module.h

Namespace: Microsoft::WRL

Module Class

Show: