WindowsRuntimeMarshal.RemoveAllEventHandlers Metod

Definition

Tar bort alla händelsehanterare som kan tas bort med den angivna metoden.

Detta API stöder produktinfrastrukturen och är inte avsett att användas direkt från koden.

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))

Parametrar

removeMethod
Action<EventRegistrationToken>

Ett ombud som representerar metoden som tar bort händelsehanterare från händelsen Windows Runtime.

Attribut

Undantag

removeMethod är null.

Gäller för