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
ניתן למצוא את המקור לתוכן זה ב- GitHub, שם ניתן גם ליצור ולסקור בעיות ולמשוך בקשות. לקבלת מידע נוסף, עיין במדריך התורמים שלנו.