DiscoveryClientReferenceCollection.Remove(String) Metod

Definition

Tar bort en DiscoveryReference med den angivna URL:en från DiscoveryClientReferenceCollection.

public:
 void Remove(System::String ^ url);
public void Remove(string url);
member this.Remove : string -> unit
Public Sub Remove (url As String)

Parametrar

url
String

En sträng som representerar URL:en för objektet som ska ta bort från DiscoveryClientReferenceCollection.

Exempel

DiscoveryDocumentReference^ myDiscoveryDocumentReference = gcnew DiscoveryDocumentReference;
String^ myStringUrl = "http://www.contoso.com/service.disco";
myDiscoveryClientReferenceCollection->Add( myStringUrl, myDiscoveryDocumentReference );

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

Gäller för