다음을 통해 공유


OperationCollection.Contains(Operation) 메서드

정의

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

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

매개 변수

operation
Operation

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

반환

operationOperationCollection의 멤버이면 true이고, 그렇지 않으면 false입니다.

예제

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

if ( myOperationCollection->Contains( myOperation ) == true )
{
   Console::WriteLine( "The index of the added 'myOperation' operation is : {0}", myOperationCollection->IndexOf( myOperation ) );
}
if(myOperationCollection.Contains(myOperation) == true)
{
   Console.WriteLine("The index of the added 'myOperation' " +
                     "operation is : " +
                     myOperationCollection.IndexOf(myOperation));
}
If myOperationCollection.Contains(myOperation) = True Then
   Console.WriteLine("The index of the added 'myOperation' " + _
            "operation is : " + _
            myOperationCollection.IndexOf(myOperation).ToString)
End If

적용 대상