ConfigurationSectionGroup.Type 属性

定义

获取或设置此 ConfigurationSectionGroup 对象的类型。Gets or sets the type for this ConfigurationSectionGroup object.

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

属性值

String

ConfigurationSectionGroup 对象的类型。The type of this ConfigurationSectionGroup object.

例外

ConfigurationSectionGroup 对象是根节组。The ConfigurationSectionGroup object is the root section group.

- 或 --or- ConfigurationSectionGroup 对象包含位置。The ConfigurationSectionGroup object has a location.

节或组已在其他级别定义。The section or group is already defined at another level.

示例

下面的代码示例说明如何使用 Type 属性。The following code example shows how to use the Type property. 这是类概述中提供的一个更大示例的一部分 ConfigurationSectionGroupThis is part of a larger example provided in the overview for the ConfigurationSectionGroup class.

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

注解

如果此类的实例 ConfigurationSectionGroup 是派生类型,则 Type 属性将返回扩展类的派生类型的名称 ConfigurationSectionGroupIf this instance of the ConfigurationSectionGroup class is a derived type, the Type property will return the name of the derived type that extends the ConfigurationSectionGroup class.

适用于

另请参阅