HttpModuleAction.Type Propriedade
Definição
Obtém ou define o tipo do módulo.Gets or sets the module type.
public:
property System::String ^ Type { System::String ^ get(); void set(System::String ^ value); };
[System.Configuration.ConfigurationProperty("type", DefaultValue=Mono.Cecil.CustomAttributeArgument, IsRequired=true)]
public string Type { get; set; }
[<System.Configuration.ConfigurationProperty("type", DefaultValue=Mono.Cecil.CustomAttributeArgument, IsRequired=true)>]
member this.Type : string with get, set
Public Property Type As String
Valor da propriedade
Uma lista separada por vírgula que contém o nome do tipo de módulo e as informações de assembly.A comma-separated list containing the module type name and the assembly information.
- Atributos
Exemplos
O exemplo de código a seguir mostra como acessar a Type propriedade.The following code example shows how to access the Type property.
// 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
Comentários
Para localizar o assembly definido pelo Type , ASP.NET procura a DLL do assembly primeiro no diretório particular do aplicativo e, em seguida, no cache do assembly do sistema.To find the assembly defined by the Type, ASP.NET searches for the assembly DLL first in the application's private \bin directory, and then in the system assembly cache.