HttpModuleAction.Type Propriété
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Obtient ou définit le type de module.
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
Liste séparée par des virgules contenant le nom du type de module et les informations d'assembly.
- Attributs
L'exemple de code suivant illustre l'accès à la propriété Type.
// 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
Pour rechercher l’assembly défini par le Type, ASP.NET recherche d’abord la DLL d’assembly dans le répertoire \bin privé de l’application, puis dans le cache d’assembly système.
Produit | Versions |
---|---|
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8 |