語言

OperationBindingCollection.Add(OperationBinding) 方法

定義

將指定的 OperationBinding 加入 的末尾 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

參數

bindingOperation
OperationBinding

OperationBinding加入收藏。

傳回

參數加入的零基索引 bindingOperation

範例

下列範例示範 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.")

適用於