Module::GenericReleaseNotifier::GenericReleaseNotifier 构造函数

初始化Module::GenericReleaseNotifier类的新实例。

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

参数

  • callback
    可以使用圆括号调用运算符的 lambda 函数、functor 指针到函数或事件处理程序 (())。

  • release
    指定 true 允许以 Module::ReleaseNotifier:: Release() 基础方法;否则,请改为指定 false。

要求

标头: module.h

命名空间: Microsoft::WRL

请参见

参考

Module::GenericReleaseNotifier 类