SectionInformation.SectionName 屬性

定義

取得關聯組態區段的名稱。

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

屬性值

關聯 ConfigurationSection 物件的名稱。

範例

下列範例示範如何取得 SectionName 物件的值 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

備註

SectionName屬性值是完整的區段名稱,其中包含組態繼承階層。

適用於