다음을 통해 공유


OperationBindingCollection.Remove(OperationBinding) 메서드

정의

OperationBinding에서 맨 처음 발견되는 지정된 OperationBindingCollection을 제거합니다.

public:
 void Remove(System::Web::Services::Description::OperationBinding ^ bindingOperation);
public void Remove (System.Web.Services.Description.OperationBinding bindingOperation);
member this.Remove : System.Web.Services.Description.OperationBinding -> unit
Public Sub Remove (bindingOperation As OperationBinding)

매개 변수

bindingOperation
OperationBinding

컬렉션에서 제거할 OperationBinding입니다.

예제

다음 예제에서는 Remove 메서드를 사용하는 방법을 보여 줍니다.

// Get the OperationBinding of the Add operation from the collection.
OperationBinding^ myOperationBinding = myOperationBindingCollection[ 3 ];

// Remove the OperationBinding of the Add operation from
// the collection.
myOperationBindingCollection->Remove( myOperationBinding );
Console::WriteLine( "\nRemoved the OperationBinding of the "
"Add operation from the collection." );
// Get the OperationBinding of the Add operation from the collection.
OperationBinding myOperationBinding =
   myOperationBindingCollection[3];

// Remove the OperationBinding of the Add operation from
// the collection.
myOperationBindingCollection.Remove(myOperationBinding);
Console.WriteLine("\nRemoved the OperationBinding of the " +
   "Add operation from the collection.");
' Get the OperationBinding of the Add operation from the collection.
Dim myOperationBinding As OperationBinding = _
   myOperationBindingCollection(3)

' Remove the OperationBinding of the 'Add' operation from
' the collection.
myOperationBindingCollection.Remove(myOperationBinding)
Console.WriteLine(ControlChars.NewLine & _
   "Removed the OperationBinding of the " & _
   "Add operation from the collection.")

설명

이 메서드는; 선형 검색을 수행합니다. 따라서 평균 실행 시간에 비례 Count합니다.

제거 된 다음에 오는 요소 OperationBinding 위로 이동 하 여 빈된 지점을 차지 합니다.

적용 대상