Export (0) Print
Expand All

DiscoveryClientReferenceCollection.Remove Method

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

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