HttpModuleAction.Type Tulajdonság
Definíció
Fontos
Egyes információk olyan, kiadás előtti termékekre vonatkoznak, amelyek a kiadásig még jelentősen módosulhatnak. A Microsoft nem vállal kifejezett vagy törvényi garanciát az itt megjelenő információért.
Lekéri vagy beállítja a modul típusát.
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
Tulajdonság értéke
Egy vesszővel tagolt lista, amely tartalmazza a modultípus nevét és a szerelvény adatait.
- Attribútumok
Példák
Az alábbi példakód bemutatja, hogyan érheti el a tulajdonságot 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
Megjegyzések
A Type által meghatározott szerelvény megkereséséhez ASP.NET először az alkalmazás privát \bin könyvtárában, majd a rendszerszerelvény gyorsítótárában keresse meg a szerelvény DLL-jét.