WeakEventManager::ProtectedAddHandler Method (Object^, Delegate^)

.NET Framework (current version)
 

Adds the specified delegate as an event handler of the specified source.

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

protected:
void ProtectedAddHandler(
	Object^ source,
	Delegate^ handler
)

Parameters

source
Type: System::Object^

The source object that the handler delegate subscribes to.

handler
Type: System::Delegate^

The delegate that handles the event that is raised by source.

.NET Framework
Available since 4.5
Return to top
Show: