OperationBindingCollection.Item プロパティ
指定した 0 から始まるインデックス番号にある OperationBinding の値を取得または設定します。
[C#] C# では、このプロパティは OperationBindingCollection クラスのインデクサになります。
Public Default Property Item( _
ByVal index As Integer _) As OperationBinding
[C#]
public OperationBinding this[intindex] {get; set;}
[C++]
public: __property OperationBinding* get_Item(intindex);public: __property void set_Item(intindex, OperationBinding*);
[JScript]
returnValue = OperationBindingCollectionObject.Item(index);OperationBindingCollectionObject.Item(index) = returnValue;またはreturnValue = OperationBindingCollectionObject(index);OperationBindingCollectionObject(index) = returnValue;
[JScript] JScript では、この型で定義されている既定のインデックス プロパティを使用することができます。しかし、独自のインデックス プロパティを明示的に定義することはできません。ただし、このクラスの expando 属性を指定すると、既定のインデックス プロパティが提供されます。提供されるインデックス プロパティの型は Object 型であり、インデックス型は String になります。
引数 [JScript]
- index
変更または返される値を持つ OperationBinding に対応する、0 から始まるインデックス番号。
パラメータ [Visual Basic, C#, C++]
- index
変更または返される値を持つ OperationBinding に対応する、0 から始まるインデックス番号。
プロパティ値
OperationBinding 。
使用例
[Visual Basic, C#, C++] 0 から始まるインデックス番号を使用し、 OperationBindingCollection のメンバを取得する方法を次の例に示します。
' Get the OperationBinding of the Add operation from the collection.
Dim myOperationBinding As OperationBinding = _
myOperationBindingCollection(3)
' Remove the OperationBinding of the 'Add' operation from
' the collection.
myOperationBindingCollection.Remove(myOperationBinding)
Console.WriteLine(ControlChars.NewLine & _
"Removed the OperationBinding of the " & _
"Add operation from the collection.")
[C#]
// Get the OperationBinding of the Add operation from the collection.
OperationBinding myOperationBinding =
myOperationBindingCollection[3];
// Remove the OperationBinding of the Add operation from
// the collection.
myOperationBindingCollection.Remove(myOperationBinding);
Console.WriteLine("\nRemoved the OperationBinding of the " +
"Add operation from the collection.");
[C++]
// Get the OperationBinding of the Add operation from the collection.
OperationBinding* myOperationBinding =
myOperationBindingCollection->Item[3];
// Remove the OperationBinding of the Add operation from
// the collection.
myOperationBindingCollection->Remove(myOperationBinding);
Console::WriteLine(S"\nRemoved the OperationBinding of the "
S"Add operation from the collection.");
[JScript] JScript のサンプルはありません。Visual Basic、C#、および C++ のサンプルを表示するには、このページの左上隅にある言語のフィルタ ボタン をクリックします。
必要条件
プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ
参照
OperationBindingCollection クラス | OperationBindingCollection メンバ | System.Web.Services.Description 名前空間