Module::GenericReleaseNotifier::GenericReleaseNotifier Constructor
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::GenericReleaseNotifier::GenericReleaseNotifier Constructor.
Initializes a new instance of the Module::GenericReleaseNotifier class.
Syntax
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