SectionInformation.Name 屬性

定義

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

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

屬性值

組態區段的完整名稱。

範例

下列範例示範如何取得 Name 物件的值 ConfigurationSection

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

    string sectionNameProperty = sInfo.Name;
    Console.WriteLine("Section name: {0}", 
        sectionNameProperty);
}
Public Shared Sub GetSectionNameProperty() 

    Dim sInfo As SectionInformation = _
    GetSectionInformation()
    
    Dim sectionNameProperty _
    As String = sInfo.Name
    Console.WriteLine("Section name: {0}", _
    sectionNameProperty)

End Sub

備註

Name是沒有路徑之區段的名稱。

適用於