Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Bestimmt, ob die DiscoveryClientReferenceCollection eine DiscoveryReference mit dem angegebenen URL enthält.
Namespace: System.Web.Services.Discovery
Assembly: System.Web.Services (in system.web.services.dll)
Syntax
'Declaration
Public Function Contains ( _
url As String _
) As Boolean
'Usage
Dim instance As DiscoveryClientReferenceCollection
Dim url As String
Dim returnValue As Boolean
returnValue = instance.Contains(url)
public bool Contains (
string url
)
public:
bool Contains (
String^ url
)
public boolean Contains (
String url
)
public function Contains (
url : String
) : boolean
Parameter
- url
Der URL für die DiscoveryReference, die in der DiscoveryClientReferenceCollection gesucht werden soll.
Rückgabewert
true, wenn die DiscoveryClientReferenceCollection eine DiscoveryReference mit dem angegebenen URL enthält, andernfalls false.
Beispiel
Dim myStringUrl1 As String = "https://localhost/dataservice.disco"
If myDiscoveryClientReferenceCollection.Contains(myStringUrl1) Then
Console.WriteLine("The document reference {0} is part of the" + _
" collection.", myStringUrl1)
End If
string myStringUrl1 = "https://localhost/dataservice.disco";
if (myDiscoveryClientReferenceCollection.Contains(myStringUrl1))
{
Console.WriteLine("The document reference {0} is part of the"
+ " collection.", myStringUrl1);
}
String^ myStringUrl1 = "https://localhost/dataservice.disco";
if ( myDiscoveryClientReferenceCollection->Contains( myStringUrl1 ) )
{
Console::WriteLine( "The document reference {0} is part of the collection.", myStringUrl1 );
}
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