Compartir a través de


DiscoveryClientResultCollection.Contains(DiscoveryClientResult) Método

Definición

Determina si DiscoveryClientResultCollection contiene un objeto DiscoveryClientResult concreto.

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

value
DiscoveryClientResult

Objeto DiscoveryClientResult que se va a buscar en la interfaz DiscoveryClientResultCollection.

Devoluciones

Boolean

Es true si DiscoveryClientResult se encuentra en DiscoveryClientResultCollection; de lo contrario, es false.

Ejemplos

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

Se aplica a

Consulte también