DiscoveryClientDocumentCollection::Contains Method (String^)
.NET Framework (current version)
Determines if the DiscoveryClientDocumentCollection contains an object with the specified URL.
Assembly: System.Web.Services (in System.Web.Services.dll)
Parameters
- url
-
Type:
System::String^
The URL for the document to locate within the DiscoveryClientDocumentCollection.
Return Value
Type: System::Booleantrue 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.
.NET Framework
Available since 1.1
Available since 1.1
Show: