共用方式為


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 執行階段 事件中移除事件處理程式的方法。

屬性

例外狀況

removeMethodnull

適用於