DiscoveryClientDocumentCollection.Contains Method (String)

 

Determines if the DiscoveryClientDocumentCollection contains an object with the specified URL.

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

member Contains : 
        url:string -> bool

Parameters

url
Type: System.String

The URL for the document to locate within the DiscoveryClientDocumentCollection.

Return Value

Type: System.Boolean

true if the DiscoveryClientDocumentCollection contains an object with the specified URL; otherwise, false.

Exception Condition
ArgumentNullException

url is null.

The following code example calls the Contains method to determine if the discovery document contains a member with the URL stored in the StringUrl variable.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show: