Compartilhar via


OperationBindingCollection.Add(OperationBinding) Método

Definição

Adiciona o OperationBinding especificado ao final do OperationBindingCollection.

public:
 int Add(System::Web::Services::Description::OperationBinding ^ bindingOperation);
public int Add (System.Web.Services.Description.OperationBinding bindingOperation);
member this.Add : System.Web.Services.Description.OperationBinding -> int
Public Function Add (bindingOperation As OperationBinding) As Integer

Parâmetros

bindingOperation
OperationBinding

O OperationBinding a adicionar à coleção.

Retornos

Int32

O índice de base zero em que o parâmetro bindingOperation foi adicionado.

Exemplos

O exemplo a seguir demonstra o uso do método Add.

// Add the Add OperationBinding to the collection.
myOperationBindingCollection->Add( addOperationBinding );
Console::WriteLine( "\nAdded the OperationBinding of the Add"
" operation to the collection." );
// Add the Add OperationBinding to the collection.
myOperationBindingCollection.Add(addOperationBinding);
Console.WriteLine("\nAdded the OperationBinding of the Add" +
   " operation to the collection.");
' Add the Add OperationBinding to the collection.
myOperationBindingCollection.Add(addOperationBinding)
Console.WriteLine(ControlChars.NewLine & _
   "Added the OperationBinding of the Add " & _
   "operation to the collection.")

Aplica-se a