Condividi tramite


OperationBindingCollection.Item[Int32] Proprietà

Definizione

Ottiene o imposta il valore di un oggetto OperationBinding in corrispondenza dell'indice in base zero.

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

Parametri

index
Int32

Indice in base zero di OperationBinding il cui valore viene modificato o restituito.

Valore della proprietà

OperationBinding

Oggetto OperationBinding.

Esempio

Nell'esempio seguente viene illustrato l'uso di un indice in base zero per recuperare un membro dell'oggetto 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.")

Si applica a