Share via


ServiceModelConfigurationElementCollection<ConfigurationElementType>.Item[] 屬性

定義

取得或設定此 ConfigurationElement 物件的屬性 (Property)、屬性 (Attribute) 或子項目。

多載

Item[Int32]

取得或設定具有指定索引之 ConfigurationElement 物件的屬性 (Property)、屬性 (Attribute) 或子項目。

Item[Object]

取得或設定具有指定索引鍵之 ConfigurationElement 物件的屬性 (Property)、屬性 (Attribute) 或子項目。

Item[Int32]

取得或設定具有指定索引之 ConfigurationElement 物件的屬性 (Property)、屬性 (Attribute) 或子項目。

public:
 property ConfigurationElementType default[int] { ConfigurationElementType get(int index); void set(int index, ConfigurationElementType value); };
public ConfigurationElementType this[int index] { get; set; }
member this.Item(int) : 'ConfigurationElementType with get, set
Default Public Property Item(index As Integer) As ConfigurationElementType

參數

index
Int32

要存取之項目的索引。

屬性值

ConfigurationElementType

集合中位於指定之索引處的項目。

例外狀況

indexnull

適用於

Item[Object]

取得或設定具有指定索引鍵之 ConfigurationElement 物件的屬性 (Property)、屬性 (Attribute) 或子項目。

public:
 virtual property ConfigurationElementType default[System::Object ^] { ConfigurationElementType get(System::Object ^ key); void set(System::Object ^ key, ConfigurationElementType value); };
public virtual ConfigurationElementType this[object key] { get; set; }
member this.Item(obj) : 'ConfigurationElementType with get, set
Default Public Overridable Property Item(key As Object) As ConfigurationElementType

參數

key
Object

要存取之項目的索引鍵。

屬性值

ConfigurationElementType

集合中位於指定之索引鍵的項目。

例外狀況

keynull

找不到 key

適用於