共用方式為


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

適用於