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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.