This documentation is archived and is not being maintained.

DiscoveryClientReferenceCollection.Remove Method

Removes a DiscoveryReference with the specified URL from the DiscoveryClientReferenceCollection.

[Visual Basic]
Public Sub Remove( _
   ByVal url As String _
)
[C#]
public void Remove(
 string url
);
[C++]
public: void Remove(
 String* url
);
[JScript]
public function Remove(
   url : String
);

Parameters

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

Example

[Visual Basic] 
Dim myDiscoveryDocumentReference As New DiscoveryDocumentReference()
Dim myStringUrl As String = "http://www.contoso.com/service.disco"
myDiscoveryClientReferenceCollection.Add(myStringUrl, _
    myDiscoveryDocumentReference)
myDiscoveryClientReferenceCollection.Remove(myStringUrl)

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

[C++] 
DiscoveryDocumentReference* myDiscoveryDocumentReference =
   new DiscoveryDocumentReference();
String* myStringUrl = S"http://www.contoso.com/service.disco";
myDiscoveryClientReferenceCollection->Add(myStringUrl,
   myDiscoveryDocumentReference);
myDiscoveryClientReferenceCollection->Remove(myStringUrl);

[JScript] No example is available for JScript. To view a Visual Basic, C#, or C++ example, click the Language Filter button Language Filter in the upper-left corner of the page.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

DiscoveryClientReferenceCollection Class | DiscoveryClientReferenceCollection Members | System.Web.Services.Discovery Namespace

Show: