語言

WindowsRuntimeMarshal.RemoveAllEventHandlers 方法

定義

移除所有可透過指定方法移除的事件處理器。

此 API 支援此產品基礎結構,但無法直接用於程式碼之中。

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

參數

removeMethod
Action<EventRegistrationToken>

一個代理,代表移除 Windows 執行階段 事件中事件處理器的方法。

屬性

例外狀況

removeMethod 是 null。

適用於