言語

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

コレクション内の 0 から始まるインデックス。

プロパティ値

指定したインデックス位置に存在するオブジェクト。

注釈

C# では、このプロパティは SchemaNameCollection クラスのインデクサーです。

JScript では、型によって定義された既定のインデックス付きプロパティを使用できますが、独自のプロパティを明示的に定義することはできません。 ただし、クラスに expando 属性を指定すると、型が Object で、インデックスの種類が String既定のインデックス付きプロパティが自動的に提供されます。

適用対象