HttpModuleAction.Name Property

 

Gets or sets the module name.

Namespace:   System.Web.Configuration
Assembly:  System.Web (in System.Web.dll)

<ConfigurationPropertyAttribute("name", IsRequired := True, IsKey := True,
	DefaultValue := "")>
<StringValidatorAttribute(MinLength := 1)>
Public Property Name As String

Property Value

Type: System.String

The module name.

The module name is used to identify this HttpModuleAction object.

The following code example shows how to use the Name property.

' Get the modules collection.
  Dim httpModules _
  As HttpModuleActionCollection = httpModulesSection.Modules
  Dim moduleFound As String = _
  "moduleName not found."

' Find the module with the specified name.
Dim currentModule As HttpModuleAction
For Each currentModule In  httpModules
   If currentModule.Name = "moduleName" Then
      moduleFound = "moduleName found."
   End If 
Next currentModule

.NET Framework
Available since 2.0
Return to top
Show: