SectionInformation.SectionName Eigenschap

Definitie

Hiermee haalt u de naam van de gekoppelde configuratiesectie op.

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

Waarde van eigenschap

De naam van het bijbehorende ConfigurationSection object.

Voorbeelden

In het volgende voorbeeld ziet u hoe u de SectionName waarde van een ConfigurationSection object kunt ophalen.

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

    string sectionName = sInfo.SectionName;
    Console.WriteLine("Section type: {0}", sectionName);
}
Public Shared Sub GetSectionName() 
    Dim sInfo As SectionInformation = _
    GetSectionInformation()
    
    Dim sectionName As String = _
    sInfo.SectionName
    Console.WriteLine("Section type: {0}", _
    sectionName)
End Sub

Opmerkingen

De SectionName eigenschapswaarde is de volledige sectienaam, die de overnamehiƫrarchie van de configuratie bevat.

Van toepassing op