SectionInformation.Name 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
會取得相關配置區段的名稱。
public:
property System::String ^ Name { System::String ^ get(); };
public string Name { get; }
member this.Name : string
Public ReadOnly Property Name As String
屬性值
配置區的完整名稱。
範例
以下範例說明如何取得 Name 物件的 ConfigurationSection 值。
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
備註
這是 Name 沒有路徑的路段名稱。