更新:2007 年 11 月
获取或设置此 ConfigurationSectionGroup 对象的类型。
Public Property Type As String
Dim instance As ConfigurationSectionGroup Dim value As String value = instance.Type instance.Type = value
public string Type { get; set; }
public: property String^ Type { String^ get (); void set (String^ value); }
/** @property */ public String get_Type() /** @property */ public void set_Type(String value)
public function get Type () : String public function set Type (value : String)
此 ConfigurationSectionGroup 对象的类型。
ConfigurationSectionGroup 对象是根节组。
- 或 -
ConfigurationSectionGroup 对象包含位置。
节或组已在其他级别定义。
如果 ConfigurationSectionGroup 类的这一实例为派生类型,则 Type 属性将返回扩展 ConfigurationSectionGroup 类的派生类型的名称。
下面的代码示例演示如何使用 Type 属性 (Property)。
Console.WriteLine((getSpacer() + _ "Type: " + sectionGroup.Type))
Console.WriteLine(getSpacer() + "Type: " + sectionGroup.Type);
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