パラメータの配列のインデックスを取得または設定します。
[C#] C# では、このプロパティは ParameterModifier クラスのインデクサになります。
Public Default Property Item( _
ByVal index As Integer _) As Boolean
[C#]
public bool this[intindex] {get; set;}
[C++]
public: __property bool get_Item(intindex);public: __property void set_Item(intindex, bool);
[JScript]
returnValue = ParameterModifierObject.Item(index);ParameterModifierObject.Item(index) = returnValue;またはreturnValue = ParameterModifierObject(index);ParameterModifierObject(index) = returnValue;
[JScript] JScript では、この型で定義されている既定のインデックス プロパティを使用することができます。しかし、独自のインデックス プロパティを明示的に定義することはできません。ただし、このクラスの expando 属性を指定すると、既定のインデックス プロパティが提供されます。提供されるインデックス プロパティの型は Object 型であり、インデックス型は String になります。
引数 [JScript]
- index
パラメータの配列のインデックス位置を表す整数。
パラメータ [Visual Basic, C#, C++]
- index
パラメータの配列のインデックス位置を表す整数。
プロパティ値
パラメータの配列のインデックス位置を表す整数。
解説
インデクサを使用すると、配列と同じ方法でクラスのインスタンスにインデックスを付けることができます。
必要条件
プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ
参照
ParameterModifier 構造体 | ParameterModifier メンバ | System.Reflection 名前空間