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自動的に提供されます。

適用対象