Aracılığıyla paylaş


OperationBindingCollection.Add(OperationBinding) Yöntem

Tanım

Belirtilen OperationBindingOperationBindingCollectionöğesini sonuna ekler.

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

Parametreler

bindingOperation
OperationBinding

OperationBinding koleksiyonuna eklenecek öğesini seçin.

Döndürülenler

Parametresinin bindingOperation eklendiği sıfır tabanlı dizin.

Örnekler

Aşağıdaki örnekte yönteminin kullanımı gösterilmektedir 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.")

Şunlara uygulanır