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 das DiscoveryExceptionDictionary eine Exception 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 DiscoveryExceptionDictionary
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 Exception, die im DiscoveryExceptionDictionary gesucht werden soll.
Rückgabewert
true, wenn das DiscoveryExceptionDictionary eine Exception mit dem angegebenen URL enthält, andernfalls false.
Ausnahmen
| Ausnahmetyp | Bedingung |
|---|---|
url ist NULL (Nothing in Visual Basic). |
Beispiel
Dim myExceptionDictionary As DiscoveryExceptionDictionary = myDiscoveryClientProtocol2.Errors
If myExceptionDictionary.Contains(myUrlKey) = True Then
Console.WriteLine("'myExceptionDictionary' contains " + _
"a discovery exception for the key '" + myUrlKey + "'")
Else
Console.WriteLine("'myExceptionDictionary' does not contain" + _
" a discovery exception for the key '" + myUrlKey + "'")
End If
DiscoveryExceptionDictionary myExceptionDictionary
= myDiscoveryClientProtocol2.Errors;
if ( myExceptionDictionary.Contains(myUrlKey) == true )
{
Console.WriteLine("'myExceptionDictionary' contains " +
" a discovery exception for the key '" + myUrlKey + "'");
}
else
{
Console.WriteLine("'myExceptionDictionary' does not contain" +
" a discovery exception for the key '" + myUrlKey + "'");
}
DiscoveryExceptionDictionary^ myExceptionDictionary = myDiscoveryClientProtocol2->Errors;
if ( myExceptionDictionary->Contains( myUrlKey ) == true )
{
Console::WriteLine( "'myExceptionDictionary' contains a discovery exception for the key '{0}'", myUrlKey );
}
else
{
Console::WriteLine( "'myExceptionDictionary' does not contain a discovery exception for the key '{0}'", myUrlKey );
}
DiscoveryExceptionDictionary myExceptionDictionary =
myDiscoveryClientProtocol2.get_Errors();
if (myExceptionDictionary.Contains(myUrlKey) == true) {
Console.WriteLine("'myExceptionDictionary' contains "
+ " a discovery exception for the key '"
+ myUrlKey + "'");
}
else {
Console.WriteLine("'myExceptionDictionary' does not contain"
+ " a discovery exception for the key '"
+ myUrlKey + "'");
}
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
DiscoveryExceptionDictionary-Klasse
DiscoveryExceptionDictionary-Member
System.Web.Services.Discovery-Namespace
Contains