Export (0) Print
Expand All

DiscoveryClientResultCollection.Contains Method

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

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft