다음을 통해 공유


OperationBindingCollection.Add(OperationBinding) 메서드

정의

지정된 OperationBindingOperationBindingCollection 끝에 추가합니다.

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입니다.

반환

Int32

bindingOperation 매개 변수가 추가된 위치의 인덱스(0부터 시작)입니다.

예제

다음 예제에서는 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.")

적용 대상