Bagikan melalui


SectionInformation.Name Properti

Definisi

Mendapatkan nama bagian konfigurasi terkait.

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

Nilai Properti

Nama lengkap bagian konfigurasi.

Contoh

Contoh berikut menunjukkan cara mendapatkan Name nilai ConfigurationSection objek.

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

Keterangan

Name adalah nama bagian tanpa jalur.

Berlaku untuk