DeclaredTypeElementCollection.Item[] 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
透過位置或鍵,取得或設定類型集合中的特定成員。
多載
| 名稱 | Description |
|---|---|
| Item[Int32] |
此 API 支援此產品基礎結構,但無法直接用於程式碼之中。 取得或設定配置元素於指定的索引位置。 |
| Item[String] |
此 API 支援此產品基礎結構,但無法直接用於程式碼之中。 透過鍵取得或設定該元素在型別集合中。 |
Item[Int32]
取得或設定配置元素於指定的索引位置。
此 API 支援此產品基礎結構,但無法直接用於程式碼之中。
public:
property System::Runtime::Serialization::Configuration::DeclaredTypeElement ^ default[int] { System::Runtime::Serialization::Configuration::DeclaredTypeElement ^ get(int index); void set(int index, System::Runtime::Serialization::Configuration::DeclaredTypeElement ^ value); };
public System.Runtime.Serialization.Configuration.DeclaredTypeElement this[int index] { get; set; }
member this.Item(int) : System.Runtime.Serialization.Configuration.DeclaredTypeElement with get, set
Default Public Property Item(index As Integer) As DeclaredTypeElement
參數
- index
- Int32
要回傳的配置元素索引位置。
屬性值
在指定的索引上。DeclaredTypeElement
適用於
Item[String]
透過鍵取得或設定該元素在型別集合中。
此 API 支援此產品基礎結構,但無法直接用於程式碼之中。
public:
property System::Runtime::Serialization::Configuration::DeclaredTypeElement ^ default[System::String ^] { System::Runtime::Serialization::Configuration::DeclaredTypeElement ^ get(System::String ^ typeName); void set(System::String ^ typeName, System::Runtime::Serialization::Configuration::DeclaredTypeElement ^ value); };
public System.Runtime.Serialization.Configuration.DeclaredTypeElement this[string typeName] { get; set; }
member this.Item(string) : System.Runtime.Serialization.Configuration.DeclaredTypeElement with get, set
Default Public Property Item(typeName As String) As DeclaredTypeElement
參數
- typeName
- String
就是要取得或設定的類型名稱(作為鍵)。
屬性值
指定元素(當用來取得該元素時)。