Redigera

Dela via


WeakEventManager.GetCurrentManager(Type) Method

Definition

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