OperationCollection.Contains(Operation) 메서드

정의

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

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 컬렉션 멤버 자격을 확인할 대상입니다.

반품

의 멤버이면 /& 이고, 그렇지 않으면 .

예제

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

if ( myOperationCollection->Contains( myOperation ))
{
   Console::WriteLine( "The index of the added 'myOperation' operation is : {0}", myOperationCollection->IndexOf( myOperation ) );
}
if (myOperationCollection.Contains(myOperation))
{
   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

적용 대상