DiscoveryClientResultCollection.Contains(DiscoveryClientResult) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Determines whether the DiscoveryClientResultCollection contains a specific 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
Parameters
- value
- DiscoveryClientResult
The DiscoveryClientResult to locate in the DiscoveryClientResultCollection.
Returns
true
if the DiscoveryClientResult is found in the DiscoveryClientResultCollection; otherwise, false
.
Examples
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
Applies to
See also
Colabore connosco no GitHub
A origem deste conteúdo pode ser encontrada no GitHub, onde também pode criar e rever problemas e pedidos Pull. Para mais informações, consulte o nosso guia do contribuidor.