HttpModuleAction(String, String) 建構函式

定義

利用傳遞的參數初始化類別的新實例 HttpModuleAction

public:
 HttpModuleAction(System::String ^ name, System::String ^ type);
public HttpModuleAction(string name, string type);
new System.Web.Configuration.HttpModuleAction : string * string -> System.Web.Configuration.HttpModuleAction
Public Sub New (name As String, type As String)

參數

name
String

模組名稱。

type
String

一個逗號分隔的清單,包含模組類型名稱與組合資訊。

範例

以下程式碼範例展示了如何建立 HttpModuleAction 物件。


// Initialize the module name and type properties.
newModuleAction.Name = "ModuleName";
newModuleAction.Type = "ModuleType";
' Initialize the module name and type properties.
newModuleAction.Name = "ModuleName"
newModuleAction.Type = "ModuleType"

備註

模組名稱是一個別名,可以用來將事件處理程式與模組事件關聯起來。 ASP.NET 會先在應用程式的私有 \bin 目錄中搜尋組合語言 DLL,然後再在全域組合快取(GAC)中搜尋。

適用於

另請參閱