DiscoveryClientReferenceCollection.Remove(String) Método

Definição

Remove a DiscoveryReference com a URL especificada do DiscoveryClientReferenceCollection.

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

Parâmetros

url
String

Uma string que representa a URL para o objeto a remover do DiscoveryClientReferenceCollectionarquivo .

Exemplos

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)

Aplica-se a