SchemaNameCollection.Item[Int32] 屬性

定義

取得或設定在指定之索引處的物件。

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

參數

index
Int32

集合中之以零起始的索引。

屬性值

位在指定之索引上的物件。

備註

在 C# 中,這個屬性是 SchemaNameCollection 類別的索引子。

在 JScript 中,您可以使用類型所定義的預設索引屬性,但是不能明確定義自己的屬性。 不過,在類別上指定 expando 屬性會自動提供類型為 Object 且索引類型為 String的預設索引屬性。

適用於