다음을 통해 공유


OperationBindingCollection.Contains(OperationBinding) 메서드

정의

지정된 OperationBindingOperationBindingCollection의 멤버인지 여부를 나타내는 값을 반환합니다.

public:
 bool Contains(System::Web::Services::Description::OperationBinding ^ bindingOperation);
public bool Contains (System.Web.Services.Description.OperationBinding bindingOperation);
member this.Contains : System.Web.Services.Description.OperationBinding -> bool
Public Function Contains (bindingOperation As OperationBinding) As Boolean

매개 변수

bindingOperation
OperationBinding

컬렉션 멤버인지 확인할 OperationBinding입니다.

반환

Boolean

bindingOperation 매개 변수가 OperationBindingCollection의 멤버이면 true이고, 그렇지 않으면 false입니다.

예제

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

// Check for the Add OperationBinding in the collection.
bool contains = myOperationBindingCollection->Contains( addOperationBinding );
Console::WriteLine( "\nWhether the collection contains the Add OperationBinding : {0}", contains );
// Check for the Add OperationBinding in the collection.
bool contains = myOperationBindingCollection.Contains
   (addOperationBinding);
Console.WriteLine("\nWhether the collection contains the Add " +
   "OperationBinding : " + contains);
' Check for the Add OperationBinding in the collection.
Dim contains As Boolean = _
   myOperationBindingCollection.Contains(addOperationBinding)
Console.WriteLine(ControlChars.NewLine & _
   "Whether the collection contains the Add " & _
   "OperationBinding : " & contains.ToString())

적용 대상