DiscoveryClientReferenceCollection.Remove Method (String)

 

Removes a DiscoveryReference with the specified URL from the DiscoveryClientReferenceCollection.

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

public void Remove(
	string url
)

Parameters

url
Type: System.String

A string that represents the URL for the object to remove from the DiscoveryClientReferenceCollection.

DiscoveryDocumentReference myDiscoveryDocumentReference =
    new DiscoveryDocumentReference();
string myStringUrl = "http://www.contoso.com/service.disco";
myDiscoveryClientReferenceCollection.Add(myStringUrl, 
    myDiscoveryDocumentReference);
myDiscoveryClientReferenceCollection.Remove(myStringUrl);

.NET Framework
Available since 1.1
Return to top
Show: