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 必須是公用的,而且可以是實例方法或靜態方法。

適用於