PreApplicationStartMethodAttribute(Type, String) 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 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 參考的方法必須是公開的,且可以是實例方法或靜態方法。