SchemaNameCollection.Item[Int32] 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定存在於指定索引的物件。
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。