다음을 통해 공유


DiscoveryClientResultCollection.Contains(DiscoveryClientResult) 메서드

정의

DiscoveryClientResultCollection에 특정 DiscoveryClientResult가 포함되어 있는지 여부를 확인합니다.

public:
 bool Contains(System::Web::Services::Discovery::DiscoveryClientResult ^ value);
public bool Contains (System.Web.Services.Discovery.DiscoveryClientResult value);
member this.Contains : System.Web.Services.Discovery.DiscoveryClientResult -> bool
Public Function Contains (value As DiscoveryClientResult) As Boolean

매개 변수

반환

Boolean

DiscoveryClientResultDiscoveryClientResultCollection에 있으면 true이고, 그러지 않으면 false입니다.

예제

if ( myDiscoveryClientResultCollection->Contains( myDiscoveryClientResult ) )
{
   Console::WriteLine( "The collection contains the specified "
   "DiscoveryClientResult instance." );
}
if(myDiscoveryClientResultCollection.Contains(
    myDiscoveryClientResult))
{
    Console.WriteLine(
        "The collection contains the specified " +
        "DiscoveryClientResult instance.");
}
If myDiscoveryClientResultCollection.Contains( _ 
    myDiscoveryClientResult) Then

    Console.WriteLine( _
        "The collection contains the specified " & _
        "DiscoveryClientResult' instance.")

End If

적용 대상

추가 정보