DiscoveryClientReferenceCollection.Contains Method (String)

 

Determines if the DiscoveryClientReferenceCollection contains a DiscoveryReference with the specified URL.

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

Public Function Contains (
	url As String
) As Boolean

Parameters

url
Type: System.String

The URL for the DiscoveryReference to locate within the DiscoveryClientReferenceCollection.

Return Value

Type: System.Boolean

true if the DiscoveryClientReferenceCollection contains a DiscoveryReference with the specified URL; otherwise, false.

Dim myStringUrl1 As String = "http://localhost/dataservice.disco"
If myDiscoveryClientReferenceCollection.Contains(myStringUrl1) Then
    Console.WriteLine("The document reference {0} is part of the" + _
    " collection.", myStringUrl1)
End If

.NET Framework
Available since 1.1
Return to top
Show: