DiscoveryClientReferenceCollection.Contains(String) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Détermine si le DiscoveryClientReferenceCollection contient avec DiscoveryReference l’URL spécifiée.
public:
bool Contains(System::String ^ url);
public bool Contains(string url);
member this.Contains : string -> bool
Public Function Contains (url As String) As Boolean
Paramètres
- url
- String
URL de la DiscoveryReference recherche dans le DiscoveryClientReferenceCollectionfichier .
Retours
true si le DiscoveryClientReferenceCollection contient avec DiscoveryReference l’URL spécifiée ; sinon, false.
Exemples
String^ myStringUrl1 = "http://localhost/dataservice.disco";
if ( myDiscoveryClientReferenceCollection->Contains( myStringUrl1 ) )
{
Console::WriteLine( "The document reference {0} is part of the collection.", myStringUrl1 );
}
string myStringUrl1 = "http://localhost/dataservice.disco";
if (myDiscoveryClientReferenceCollection.Contains(myStringUrl1))
{
Console.WriteLine("The document reference {0} is part of the"
+ " collection.", myStringUrl1);
}
Dim myStringUrl1 As String = "http://localhost/dataservice.disco"
If myDiscoveryClientReferenceCollection.Contains(myStringUrl1) Then
Console.WriteLine("The document reference {0} is part of the" + _
" collection.", myStringUrl1)
End If