DiscoveryClientResultCollection.Contains(DiscoveryClientResult) Methode
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Bestimmt, ob die DiscoveryClientResultCollection enthält eine bestimmte 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
Parameter
- value
- DiscoveryClientResult
Der DiscoveryClientResult zu findende In der DiscoveryClientResultCollection.
Gibt zurück
truewenn dies in der DiscoveryClientResultDiscoveryClientResultCollection; andernfalls gefunden wird. false
Beispiele
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