Partilhar via


DiscoveryClientReferenceCollection.Remove(String) Método

Definição

Remove uma DiscoveryReference com a URL especificada da 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 cadeia de caracteres que representa a URL para o objeto a ser removido da DiscoveryClientReferenceCollection.

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