แก้ไข

แชร์ผ่าน


HttpModuleAction(String, String) Constructor

Definition

Initializes a new instance of the HttpModuleAction class using the passed parameters.

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)

Parameters

name
String

The module name.

type
String

A comma-separated list containing the module type name and the assembly information.

Examples

The following code example shows how to create an HttpModuleAction object.


// 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"

Remarks

The module name is an alias you can use to associate event handlers with the module events. ASP.NET searches for the assembly DLL first in the application's private \bin directory and then in the Global Assembly Cache (GAC).

Applies to

See also