Export (0) Print
Expand All

WeakEventManager(Of TEventSource, TEventArgs).AddHandler Method

.NET Framework 4.5

Adds the specified event handler to the specified event.

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

'Declaration
Public Shared Sub AddHandler ( _
	source As TEventSource, _
	eventName As String, _
	handler As EventHandler(Of TEventArgs) _
)

Parameters

source
Type: TEventSource

The source object that raises the specified event.

eventName
Type: System.String

The name of the event to subscribe to.

handler
Type: System.EventHandler(Of TEventArgs)

The delegate that handles the event.

.NET Framework

Supported in: 4.6, 4.5
Show:
© 2015 Microsoft