Nyelv

SectionInformation.SectionName Tulajdonság

Definíció

Lekéri a társított konfigurációs szakasz nevét.

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

Tulajdonság értéke

A társított ConfigurationSection objektum neve.

Példák

Az alábbi példa bemutatja, hogyan lehet lekérni egy SectionNameConfigurationSection objektum értékét.

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

Megjegyzések

A SectionName tulajdonság értéke a teljes szakasznév, amely magában foglalja a konfigurációöröklési hierarchiát.

A következőre érvényes: