Compartilhar via


OperationBindingCollection.Item[Int32] Propriedade

Definição

Obtém ou define o valor de um OperationBinding no índice de base zero especificado.

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

Parâmetros

index
Int32

O índice de base zero do OperationBinding cujo valor é modificado ou retornado.

Valor da propriedade

OperationBinding

Um OperationBinding.

Exemplos

O exemplo a seguir demonstra o uso de um índice baseado em zero para recuperar um membro do 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.")

Aplica-se a