HttpModuleAction.Name Proprietà
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Ottiene o imposta il nome del modulo.
public:
property System::String ^ Name { System::String ^ get(); void set(System::String ^ value); };
[System.Configuration.ConfigurationProperty("name", DefaultValue="", IsKey=true, IsRequired=true)]
[System.Configuration.StringValidator(MinLength=1)]
public string Name { get; set; }
[<System.Configuration.ConfigurationProperty("name", DefaultValue="", IsKey=true, IsRequired=true)>]
[<System.Configuration.StringValidator(MinLength=1)>]
member this.Name : string with get, set
Public Property Name As String
Valore della proprietà
Nome del modulo.
- Attributi
Esempio
Nell'esempio di codice riportato di seguito viene illustrato come utilizzare la proprietà Name.
// Get the modules collection.
HttpModuleActionCollection httpModules =
httpModulesSection.Modules;
string moduleFound = "moduleName not found.";
// Find the module with the specified name.
foreach (HttpModuleAction currentModule in httpModules)
{
if (currentModule.Name == "moduleName")
moduleFound = "moduleName found.";
}
' 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
Commenti
Il nome del modulo viene usato per identificare questo HttpModuleAction oggetto.
Si applica a
Commenti e suggerimenti
https://aka.ms/ContentUserFeedback.
Presto disponibile: Nel corso del 2024 verranno gradualmente disattivati i problemi di GitHub come meccanismo di feedback per il contenuto e ciò verrà sostituito con un nuovo sistema di feedback. Per altre informazioni, vedereInvia e visualizza il feedback per