Compartilhar via


Module::GenericReleaseNotifier::GenericReleaseNotifier Constructor

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

GenericReleaseNotifier(
   T callback, 
   bool release
) throw() : ReleaseNotifier(release), callback_(callback);

Parameters

  • callback
    A lambda, functor, or pointer-to-function event handler that can be invoked with the parentheses function operator (()).

  • release
    Specify true to enable calling the underlying Module::ReleaseNotifier::Release() method; otherwise, specify false.

Requirements

Header: module.h

Namespace: Microsoft::WRL

See Also

Reference

Module::GenericReleaseNotifier Class