Condividi tramite


OperationBindingCollection.Add(OperationBinding) Metodo

Definizione

Aggiunge l'oggetto OperationBinding specificato alla fine di 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

Parametri

bindingOperation
OperationBinding

Oggetto OperationBinding da aggiungere alla raccolta.

Restituisce

Indice in base zero in cui è stato aggiunto il parametro bindingOperation.

Esempio

Nell'esempio seguente viene illustrato l'uso del metodo 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.")

Si applica a