Compartir a través de


OperationBindingCollection.Add(OperationBinding) Método

Definición

Agrega el objeto OperationBinding especificado al final de 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

OperationBinding que se agrega a la colección.

Devoluciones

Índice de base cero en donde se ha agregado el parámetro bindingOperation.

Ejemplos

En el siguiente ejemplo se muestra el uso del 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.")

Se aplica a