Freigeben über


DiscoveryClientReferenceCollection.Remove-Methode

Entfernt eine DiscoveryReference mit dem angegebenen URL aus der DiscoveryClientReferenceCollection.

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

Syntax

'Declaration
Public Sub Remove ( _
    url As String _
)
'Usage
Dim instance As DiscoveryClientReferenceCollection
Dim url As String

instance.Remove(url)
public void Remove (
    string url
)
public:
void Remove (
    String^ url
)
public void Remove (
    String url
)
public function Remove (
    url : String
)

Parameter

Beispiel

Dim myDiscoveryDocumentReference As New DiscoveryDocumentReference()
Dim myStringUrl As String = "https://www.contoso.com/service.disco"
myDiscoveryClientReferenceCollection.Add(myStringUrl, _
    myDiscoveryDocumentReference)
myDiscoveryClientReferenceCollection.Remove(myStringUrl)
DiscoveryDocumentReference myDiscoveryDocumentReference =
    new DiscoveryDocumentReference();
string myStringUrl = "https://www.contoso.com/service.disco";
myDiscoveryClientReferenceCollection.Add(myStringUrl, 
    myDiscoveryDocumentReference);
myDiscoveryClientReferenceCollection.Remove(myStringUrl);
DiscoveryDocumentReference^ myDiscoveryDocumentReference = gcnew DiscoveryDocumentReference;
String^ myStringUrl = "https://www.contoso.com/service.disco";
myDiscoveryClientReferenceCollection->Add( myStringUrl, myDiscoveryDocumentReference );

myDiscoveryClientReferenceCollection->Remove( myStringUrl );
DiscoveryDocumentReference myDiscoveryDocumentReference = 
    new DiscoveryDocumentReference();
String myStringUrl = "https://www.contoso.com/service.disco";

myDiscoveryClientReferenceCollection.Add(myStringUrl, 
    myDiscoveryDocumentReference);
myDiscoveryClientReferenceCollection.Remove(myStringUrl);

Plattformen

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

.NET Framework unterstützt nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen.

Versionsinformationen

.NET Framework

Unterstützt in: 2.0, 1.1, 1.0

Siehe auch

Referenz

DiscoveryClientReferenceCollection-Klasse
DiscoveryClientReferenceCollection-Member
System.Web.Services.Discovery-Namespace