TypeElementCollection.Item[] 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定集合中的元素。
多載
| 名稱 | Description |
|---|---|
| Item[Int32] |
取得或設定該元素在集合中指定的索引。 |
| Item[Object] |
取得或設定集合中擁有指定金鑰的 。TypeElement |
Item[Int32]
取得或設定該元素在集合中指定的索引。
public:
property System::Web::Services::Configuration::TypeElement ^ default[int] { System::Web::Services::Configuration::TypeElement ^ get(int index); void set(int index, System::Web::Services::Configuration::TypeElement ^ value); };
public System.Web.Services.Configuration.TypeElement this[int index] { get; set; }
member this.Item(int) : System.Web.Services.Configuration.TypeElement with get, set
Default Public Property Item(index As Integer) As TypeElement
參數
- index
- Int32
集合中的零為基礎索引。
屬性值
TypeElement該 that 存在於指定的索引。
適用於
Item[Object]
取得或設定集合中擁有指定金鑰的 。TypeElement
public:
property System::Web::Services::Configuration::TypeElement ^ default[System::Object ^] { System::Web::Services::Configuration::TypeElement ^ get(System::Object ^ key); void set(System::Object ^ key, System::Web::Services::Configuration::TypeElement ^ value); };
public System.Web.Services.Configuration.TypeElement this[object key] { get; set; }
member this.Item(obj) : System.Web.Services.Configuration.TypeElement with get, set
Default Public Property Item(key As Object) As TypeElement
參數
- key
- Object
在集合中,要取得或設定的鑰匙 TypeElement 。
屬性值
例外狀況
TypeElement該集合中未找到指定鑰匙的