OperationBindingCollection.Add(OperationBinding) Methode

Definitie

Hiermee voegt u de opgegeven OperationBinding waarde toe aan het einde van 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

Parameters

bindingOperation
OperationBinding

De OperationBinding toe te voegen aan de verzameling.

Retouren

De op nul gebaseerde index waar de bindingOperation parameter is toegevoegd.

Voorbeelden

In het volgende voorbeeld ziet u het gebruik van de methode 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.")

Van toepassing op