通过


ConfigurationSectionGroup.Type 属性

定义

获取或设置此 ConfigurationSectionGroup 对象的类型。

public:
 property System::String ^ Type { System::String ^ get(); void set(System::String ^ value); };
public string Type { get; set; }
member this.Type : string with get, set
Public Property Type As String

属性值

ConfigurationSectionGroup 对象的类型。

例外

对象 ConfigurationSectionGroup 是根节组。

-或-

对象 ConfigurationSectionGroup 具有一个位置。

节或组已在另一个级别定义。

示例

下面的代码示例演示如何使用该 Type 属性。 这是类概述 ConfigurationSectionGroup 中提供的大型示例的一部分。

indent("Type: " + sectionGroup.Type);
indent("Type: " + sectionGroup.Type)

注解

如果该类的 ConfigurationSectionGroup 此实例是派生类型,该 Type 属性将返回扩展 ConfigurationSectionGroup 该类的派生类型的名称。

适用于

另请参阅