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
Feedback
https://aka.ms/ContentUserFeedback.
În curând: Pe parcursul anului 2024, vom elimina treptat Probleme legate de GitHub ca mecanism de feedback pentru conținut și îl vom înlocui cu un nou sistem de feedback. Pentru mai multe informații, consultați:Trimiteți și vizualizați feedback pentru