共用方式為


OperationBindingCollection.Item[Int32] 屬性

定義

取得或設定 OperationBinding 的值,於指定的以零起始的索引位置。

public:
 property System::Web::Services::Description::OperationBinding ^ default[int] { System::Web::Services::Description::OperationBinding ^ get(int index); void set(int index, System::Web::Services::Description::OperationBinding ^ value); };
public System.Web.Services.Description.OperationBinding this[int index] { get; set; }
member this.Item(int) : System.Web.Services.Description.OperationBinding with get, set
Default Public Property Item(index As Integer) As OperationBinding

參數

index
Int32

OperationBinding (其值已修改或傳回) 的以零起始的索引。

屬性值

OperationBinding

範例

下列範例示範如何使用以零起始的索引來擷取 的成員 OperationBindingCollection

// 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." );
// 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.");
' 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.")

適用於