This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Adds the specified event handler to a Windows Runtime event.
Assembly: mscorlib (in mscorlib.dll)
public static void AddEventHandler<T>( Func<T, EventRegistrationToken> addMethod, Action<EventRegistrationToken> removeMethod, T handler )
The type of the delegate that represents the event handler.
- Type: System.Func<, EventRegistrationToken>
A delegate that represents the method that adds event handlers to the Windows Runtime event.
- Type: System.Action<EventRegistrationToken>
A delegate that represents the method that removes event handlers from the Windows Runtime event.
A delegate the represents the event handler that is added.
requires full trust for the immediate caller. This member cannot be used by partially trusted or transparent code.