.NET Framework 类库
ConfigurationSectionGroup..::.SectionGroupName 属性

更新:2007 年 11 月

获取与此 ConfigurationSectionGroup 关联的节组名称。

命名空间:  System.Configuration
程序集:  System.Configuration(在 System.Configuration.dll 中)

语法

Visual Basic(声明)
Public ReadOnly Property SectionGroupName As String
Visual Basic (用法)
Dim instance As ConfigurationSectionGroup
Dim value As String

value = instance.SectionGroupName
C#
public string SectionGroupName { get; }
Visual C++
public:
property String^ SectionGroupName {
    String^ get ();
}
J#
/** @property */
public String get_SectionGroupName()
JScript
public function get SectionGroupName () : String

属性值

类型:System..::.String

ConfigurationSectionGroup 对象的节组名称。

备注

SectionGroupName 属性值是节组(包括父节组)的完整路径名。

示例

下面的代码示例演示如何显示 ConfigurationSectionGroup 类的此实例的名称。

Visual Basic
' Get the group name without including
' the parent group names.
Console.WriteLine((getSpacer() + _
"Section Group Name: " + _
sectionGroup.SectionGroupName))
C#
// Get the group name without including
// the parent group names.
Console.WriteLine(getSpacer() +
    "Section Group Name: " + 
    sectionGroup.SectionGroupName);
平台

Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

.NET Framework 和 .NET Compact Framework 并不是对每个平台的所有版本都提供支持。有关支持的版本的列表,请参见.NET Framework 系统要求

版本信息

.NET Framework

受以下版本支持:3.5、3.0、2.0
另请参见

参考

标记 :


Page view tracker