Contains Method
Collapse the table of content
Expand the table of content

DiscoveryClientResultCollection.Contains Method (DiscoveryClientResult)

 

Determines whether the DiscoveryClientResultCollection contains a specific DiscoveryClientResult.

Namespace:   System.Web.Services.Discovery
Assembly:  System.Web.Services (in System.Web.Services.dll)

public bool Contains(
	DiscoveryClientResult value
)

Return Value

Type: System.Boolean

true if the DiscoveryClientResult is found in the DiscoveryClientResultCollection; otherwise, false.

if(myDiscoveryClientResultCollection.Contains(
    myDiscoveryClientResult))
{
    Console.WriteLine(
        "The collection contains the specified " +
        "DiscoveryClientResult instance.");
}

.NET Framework
Available since 1.1
Return to top
Show:
© 2016 Microsoft