DeclaredTypeElementCollection.Item[] 屬性

定義

依位置或索引鍵,取得或設定型別集合中的特定成員。

多載

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

要取得或設定之型別的名稱 (可當做索引鍵)。

屬性值

指定的項目 (當用於取得項目時)。

適用於