ConfigurationElementCollection.CollectionType 属性

定义

获取 ConfigurationElementCollection 的类型。

public:
 virtual property System::Configuration::ConfigurationElementCollectionType CollectionType { System::Configuration::ConfigurationElementCollectionType get(); };
public virtual System.Configuration.ConfigurationElementCollectionType CollectionType { get; }
member this.CollectionType : System.Configuration.ConfigurationElementCollectionType
Public Overridable ReadOnly Property CollectionType As ConfigurationElementCollectionType

属性值

此集合的 ConfigurationElementCollectionType

示例

下面的代码示例演示如何获取 CollectionType 属性。

public override ConfigurationElementCollectionType CollectionType
{
    get
    {
        return ConfigurationElementCollectionType.AddRemoveClearMap;
    }
}
Public ReadOnly Property CollectionType() As ConfigurationElementCollectionType
    Get
        Return ConfigurationElementCollectionType.AddRemoveClearMap
    End Get
End Property

注解

类型为 BasicMapAddRemoveClearMap 字段。 有关详细信息,请参阅 ConfigurationElementCollectionType

适用于