共用方式為


AssemblyLoadEventHandler 代理人

定義

表示處理 AssemblyLoadAppDomain 事件的方法。

public delegate void AssemblyLoadEventHandler(System::Object ^ sender, AssemblyLoadEventArgs ^ args);
public delegate void AssemblyLoadEventHandler(object? sender, AssemblyLoadEventArgs args);
public delegate void AssemblyLoadEventHandler(object sender, AssemblyLoadEventArgs args);
[System.Serializable]
public delegate void AssemblyLoadEventHandler(object sender, AssemblyLoadEventArgs args);
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public delegate void AssemblyLoadEventHandler(object sender, AssemblyLoadEventArgs args);
type AssemblyLoadEventHandler = delegate of obj * AssemblyLoadEventArgs -> unit
[<System.Serializable>]
type AssemblyLoadEventHandler = delegate of obj * AssemblyLoadEventArgs -> unit
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type AssemblyLoadEventHandler = delegate of obj * AssemblyLoadEventArgs -> unit
Public Delegate Sub AssemblyLoadEventHandler(sender As Object, args As AssemblyLoadEventArgs)

參數

sender
Object

事件的來源。

args
AssemblyLoadEventArgs

包含事件資料的 AssemblyLoadEventArgs

屬性

備註

AssemblyLoadEventHandler用來指定在回應 AssemblyLoad 事件時叫用的方法。 若要將 的 AssemblyLoadEventHandler 實例與事件產生關聯,請將 實例新增至 事件。 每當載入元件時,都會叫用 所 AssemblyLoadEventHandler 參考的方法,直到 AssemblyLoadEventHandler 從 事件中移除 為止。

擴充方法

GetMethodInfo(Delegate)

取得表示特定委派所代表之方法的物件。

適用於