WeakEventManager.SetCurrentManager Method (Type, WeakEventManager)

 

Sets the current manager for the specified manager type.

Namespace:   System.Windows
Assembly:  WindowsBase (in WindowsBase.dll)

protected static void SetCurrentManager(
	Type managerType,
	WeakEventManager manager
)

Parameters

managerType
Type: System.Type

The type to set the new event manager.

manager
Type: System.Windows.WeakEventManager

The new event manager.

Call the SetCurrentManager method to initialize a manager, if that is required by a call to your CurrentManager property on a WeakEventManager implementation.

.NET Framework
Available since 3.0
Return to top
Show: