DiscoveryClientResultCollection.Contains(DiscoveryClientResult) Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Determina se DiscoveryClientResultCollection contiene un oggetto DiscoveryClientResult specifico.
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
Parametri
- value
- DiscoveryClientResult
Oggetto DiscoveryClientResult da individuare in DiscoveryClientResultCollection.
Restituisce
true
se l'oggetto DiscoveryClientResult si trova in DiscoveryClientResultCollection; in caso contrario, false
.
Esempio
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