SectionInformation.SectionName Vlastnost

Definice

Získá název přidruženého oddílu konfigurace.

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

Hodnota vlastnosti

Název přidruženého ConfigurationSection objektu.

Příklady

Následující příklad ukazuje, jak získat SectionName hodnotu objektu ConfigurationSection .

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

Poznámky

Hodnota SectionName vlastnosti je úplný název oddílu, který zahrnuje hierarchii dědičnosti konfigurace.

Platí pro