SectionInformation.SectionName Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the name of the associated configuration section.
public:
property System::String ^ SectionName { System::String ^ get(); };
public string SectionName { get; }
member this.SectionName : string
Public ReadOnly Property SectionName As String
Property Value
The name of the associated ConfigurationSection object.
Examples
The following example shows how to get the SectionName value of a ConfigurationSection object.
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
Remarks
The SectionName property value is the complete section name, which includes the configuration inheritance hierarchy.
Applies to
Σχόλια
https://aka.ms/ContentUserFeedback.
Σύντομα διαθέσιμα: Καθ' όλη τη διάρκεια του 2024 θα καταργήσουμε σταδιακά τα ζητήματα GitHub ως μηχανισμό ανάδρασης για το περιεχόμενο και θα το αντικαταστήσουμε με ένα νέο σύστημα ανάδρασης. Για περισσότερες πληροφορίες, ανατρέξτε στο θέμα:Υποβολή και προβολή σχολίων για