SectionInformation.Name Egenskap

Definition

Hämtar namnet på det associerade konfigurationsavsnittet.

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

Egenskapsvärde

Det fullständiga namnet på konfigurationsavsnittet.

Exempel

I följande exempel visas hur du hämtar värdet för Name ett ConfigurationSection objekt.

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

Kommentarer

Name är namnet på avsnittet utan sökvägen.

Gäller för