SectionInformation.Name Proprietà

Definizione

Ottiene il nome della sezione di configurazione associata.

public:
 property System::String ^ Name { System::String ^ get(); };
public string Name { get; }
member this.Name : string
Public ReadOnly Property Name As String

Valore della proprietà

Nome completo della sezione di configurazione.

Esempio

Nell'esempio seguente viene illustrato come ottenere il Name valore di un ConfigurationSection oggetto .

static public void GetSectionNameProperty()
{
    SectionInformation sInfo =
        GetSectionInformation();

    string sectionNameProperty = sInfo.Name;
    Console.WriteLine("Section name: {0}", 
        sectionNameProperty);
}
Public Shared Sub GetSectionNameProperty() 

    Dim sInfo As SectionInformation = _
    GetSectionInformation()
    
    Dim sectionNameProperty _
    As String = sInfo.Name
    Console.WriteLine("Section name: {0}", _
    sectionNameProperty)

End Sub

Commenti

Name è il nome della sezione senza il percorso.

Si applica a