Freigeben über


Module::GenericReleaseNotifier Class

 

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

Invokes an event handler when the last object in the current module is released. The event handler is specified by on a lambda, functor, or pointer-to-function.

Syntax

template<  
   typename T  
>  
class GenericReleaseNotifier : public ReleaseNotifier;  

Parameters

T
The type of the data member that contains the location of the event handler.

Members

Public Constructors

Name Description
Module::GenericReleaseNotifier::GenericReleaseNotifier Constructor Initializes a new instance of the Module::GenericReleaseNotifier class.

Public Methods

Name Description
Module::GenericReleaseNotifier::Invoke Method Calls the event handler associated with the current Module::GenericReleaseNotifier object.

Protected Data Members

Name Description
Module::GenericReleaseNotifier::callback_ Data Member Holds the lambda, functor, or pointer-to-function event handler associated with the current Module::GenericReleaseNotifier object.

Inheritance Hierarchy

ReleaseNotifier

GenericReleaseNotifier

Requirements

Header: module.h

Namespace: Microsoft::WRL

See Also

Module Class