Compartilhar via


DiscoveryClientResultCollection.Contains(DiscoveryClientResult) Método

Definição

Determina se o DiscoveryClientResultCollection contém um DiscoveryClientResult específico.

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

Parâmetros

Retornos

Boolean

true se o DiscoveryClientResult for encontrado no DiscoveryClientResultCollection; caso contrário, false.

Exemplos

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

Aplica-se a

Confira também