HttpModuleAction(String, String) Konstruktor

Definition

Initierar en ny instans av klassen med hjälp av HttpModuleAction de överförda parametrarna.

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)

Parametrar

name
String

Modulnamnet.

type
String

En kommaavgränsad lista som innehåller modultypsnamnet och sammansättningsinformationen.

Exempel

I följande kodexempel visas hur du skapar ett HttpModuleAction objekt.


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

Kommentarer

Modulnamnet är ett alias som du kan använda för att associera händelsehanterare med modulhändelserna. ASP.NET söker efter sammansättnings-DLL först i programmets privata \bin-katalog och sedan i Global Assembly Cache (GAC).

Gäller för

Se även