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
Σχόλια
https://aka.ms/ContentUserFeedback.
Σύντομα διαθέσιμα: Καθ' όλη τη διάρκεια του 2024 θα καταργήσουμε σταδιακά τα ζητήματα GitHub ως μηχανισμό ανάδρασης για το περιεχόμενο και θα το αντικαταστήσουμε με ένα νέο σύστημα ανάδρασης. Για περισσότερες πληροφορίες, ανατρέξτε στο θέμα:Υποβολή και προβολή σχολίων για