SectionInformation.Name Propriété

Définition

Obtient le nom de la section de configuration associée.

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

Valeur de propriété

Nom complet de la section de configuration.

Exemples

L’exemple suivant montre comment obtenir la Name valeur d’un ConfigurationSection objet.

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

Remarques

Name est le nom de la section sans le chemin d’accès.

S’applique à