HttpModuleAction(String, String) 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
使用传递的参数初始化类的新实例 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 目录中,然后在全局程序集缓存(GAC)中搜索程序集 DLL。