Freigeben über


SectionInformation.SectionName Eigenschaft

Definition

Ruft den Namen des zugeordneten Konfigurationsabschnitts ab.

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

Eigenschaftswert

Der Name des zugeordneten ConfigurationSection Objekts.

Beispiele

Das folgende Beispiel zeigt, wie der SectionName Wert eines ConfigurationSection Objekts abgerufen wird.

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

Hinweise

Der SectionName Eigenschaftswert ist der vollständige Abschnittsname, der die Konfigurationsvererbungshierarchie enthält.

Gilt für: