SectionInformation.Name Tulajdonság
Definíció
Fontos
Egyes információk olyan, kiadás előtti termékekre vonatkoznak, amelyek a kiadásig még jelentősen módosulhatnak. A Microsoft nem vállal kifejezett vagy törvényi garanciát az itt megjelenő információért.
Lekéri a társított konfigurációs szakasz nevét.
public:
property System::String ^ Name { System::String ^ get(); };
public string Name { get; }
member this.Name : string
Public ReadOnly Property Name As String
Tulajdonság értéke
A konfigurációs szakasz teljes neve.
Példák
Az alábbi példa bemutatja, hogyan lehet lekérni egy NameConfigurationSection objektum értékét.
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
Megjegyzések
Az Name elérési út nélküli szakasz neve.