共用方式為


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) 。

適用於

另請參閱