OperationBindingCollection.Add(OperationBinding) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Ajoute la valeur spécifiée OperationBinding à la fin du 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
Paramètres
- bindingOperation
- OperationBinding
À OperationBinding ajouter à la collection.
Retours
Index de base zéro où le bindingOperation paramètre a été ajouté.
Exemples
L'exemple suivant illustre l'utilisation de la méthode 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.")