Επεξεργασία

Κοινή χρήση μέσω


WindowsRuntimeMarshal.RemoveAllEventHandlers Method

Definition

Removes all the event handlers that can be removed by using the specified method.

This API supports the product infrastructure and is not intended to be used directly from your code.

public:
 static void RemoveAllEventHandlers(Action<System::Runtime::InteropServices::WindowsRuntime::EventRegistrationToken> ^ removeMethod);
[System.Security.SecurityCritical]
public static void RemoveAllEventHandlers (Action<System.Runtime.InteropServices.WindowsRuntime.EventRegistrationToken> removeMethod);
public static void RemoveAllEventHandlers (Action<System.Runtime.InteropServices.WindowsRuntime.EventRegistrationToken> removeMethod);
[<System.Security.SecurityCritical>]
static member RemoveAllEventHandlers : Action<System.Runtime.InteropServices.WindowsRuntime.EventRegistrationToken> -> unit
static member RemoveAllEventHandlers : Action<System.Runtime.InteropServices.WindowsRuntime.EventRegistrationToken> -> unit
Public Shared Sub RemoveAllEventHandlers (removeMethod As Action(Of EventRegistrationToken))

Parameters

removeMethod
Action<EventRegistrationToken>

A delegate that represents the method that removes event handlers from the Windows Runtime event.

Attributes

Exceptions

removeMethod is null.

Applies to