Compartir por


HttpModuleAction.Type Propiedad

Definición

Obtiene o establece el tipo de módulo.

public:
 property System::String ^ Type { System::String ^ get(); void set(System::String ^ value); };
[System.Configuration.ConfigurationProperty("type", DefaultValue="", IsRequired=true)]
public string Type { get; set; }
[<System.Configuration.ConfigurationProperty("type", DefaultValue="", IsRequired=true)>]
member this.Type : string with get, set
Public Property Type As String

Valor de propiedad

Lista separada por comas que contiene el nombre del tipo de módulo y la información del ensamblado.

Atributos

Ejemplos

En el ejemplo de código siguiente se muestra cómo acceder a la Type propiedad .


// Get the modules collection.
HttpModuleActionCollection httpModules2 = 
    httpModulesSection.Modules;
string typeFound = "typeName not found.";

// Find the module with the specified type.
foreach (HttpModuleAction currentModule in httpModules2)
{
    if (currentModule.Type == "typeName")
        typeFound = "typeName found.";
}
' Get the modules collection.
  Dim httpModules2 _
  As HttpModuleActionCollection = httpModulesSection.Modules
  Dim typeFound As String = _
  "typeName not found."

' Find the module with the specified type.
  Dim currentModule1 As HttpModuleAction
  For Each currentModule1 In httpModules2
      If currentModule1.Type = "typeName" Then
          typeFound = "typeName found."
      End If
  Next currentModule1

Comentarios

Para buscar el ensamblado definido por Type, ASP.NET busca primero el archivo DLL del ensamblado en el directorio \bin privado de la aplicación y, a continuación, en la caché del ensamblado del sistema.

Se aplica a