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

适用于