WeakEventManager.GetCurrentManager(Type) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the WeakEventManager implementation that is used for the provided type.
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
Parameters
- managerType
- Type
The type to obtain the WeakEventManager for.
Returns
The matching WeakEventManager implementation.
Remarks
ReceiveWeakEvent implementations call this method using their passed managerType
. The returned WeakEventManager is then used as the differentiator that determines which event was received, and which private class handler to invoke.
Applies to
See also
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
.NET