Share via


WindowsRuntimeMarshal.RemoveEventHandler<T> メソッド

定義

指定したイベントハンドラーを Windows ランタイムイベントから削除します。

この API は製品インフラストラクチャをサポートします。コードから直接使用するものではありません。

public:
generic <typename T>
 static void RemoveEventHandler(Action<System::Runtime::InteropServices::WindowsRuntime::EventRegistrationToken> ^ removeMethod, T handler);
[System.Security.SecurityCritical]
public static void RemoveEventHandler<T> (Action<System.Runtime.InteropServices.WindowsRuntime.EventRegistrationToken> removeMethod, T handler);
public static void RemoveEventHandler<T> (Action<System.Runtime.InteropServices.WindowsRuntime.EventRegistrationToken> removeMethod, T handler);
[<System.Security.SecurityCritical>]
static member RemoveEventHandler : Action<System.Runtime.InteropServices.WindowsRuntime.EventRegistrationToken> * 'T -> unit
static member RemoveEventHandler : Action<System.Runtime.InteropServices.WindowsRuntime.EventRegistrationToken> * 'T -> unit
Public Shared Sub RemoveEventHandler(Of T) (removeMethod As Action(Of EventRegistrationToken), handler As T)

型パラメーター

T

イベント ハンドラーを表すデリゲートの型。

パラメーター

removeMethod
Action<EventRegistrationToken>

Windows ランタイムイベントからイベントハンドラーを削除するメソッドを表すデリゲート。

handler
T

削除されるイベント ハンドラー。

属性

例外

removeMethodnullです。

適用対象