PreApplicationStartMethodAttribute(Type, String) 建構函式

定義

初始化 PreApplicationStartMethodAttribute 類別的新執行個體。

public:
 PreApplicationStartMethodAttribute(Type ^ type, System::String ^ methodName);
public PreApplicationStartMethodAttribute(Type type, string methodName);
new System.Web.PreApplicationStartMethodAttribute : Type * string -> System.Web.PreApplicationStartMethodAttribute
Public Sub New (type As Type, methodName As String)

參數

type
Type

一個描述啟動方法類型的特定物件。

methodName
String

一個空的參數簽名,且沒有回傳值。

備註

參數所 methodName 參考的方法必須是公開的,且可以是實例方法或靜態方法。

適用於