Udostępnij za pośrednictwem


OperationBindingCollection.Add(OperationBinding) Metoda

Definicja

Dodaje określony OperationBinding element na końcu elementu 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

Parametry

bindingOperation
OperationBinding

Element OperationBinding do dodania do kolekcji.

Zwraca

Indeks oparty na zera, w którym bindingOperation został dodany parametr.

Przykłady

W poniższym przykładzie pokazano użycie Add metody .

// 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.")

Dotyczy