WeakEventManager.GetCurrentManager(Type) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回用于所提供类型的 WeakEventManager 实现。
protected:
static System::Windows::WeakEventManager ^ GetCurrentManager(Type ^ managerType);
protected static System.Windows.WeakEventManager GetCurrentManager (Type managerType);
static member GetCurrentManager : Type -> System.Windows.WeakEventManager
Protected Shared Function GetCurrentManager (managerType As Type) As WeakEventManager
参数
- managerType
- Type
要为其获取 WeakEventManager 的类型。
返回
匹配的 WeakEventManager 实现。
注解
ReceiveWeakEvent 实现使用其传递的 managerType
调用此方法。 然后,返回的 WeakEventManager 用作区分器,用于确定接收了哪个事件以及要调用的私有类处理程序。
适用于
另请参阅
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈