Share via


SectionInformation.SectionName Properti

Definisi

Mendapatkan nama bagian konfigurasi terkait.

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

Nilai Properti

Nama objek terkait ConfigurationSection .

Contoh

Contoh berikut menunjukkan cara mendapatkan SectionName nilai ConfigurationSection objek.

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

Keterangan

Nilai SectionName properti adalah nama bagian lengkap, yang mencakup hierarki pewarisan konfigurasi.

Berlaku untuk