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.
Gibt einen Wert zurück, der angibt, ob das angegebene OperationBinding ein Member der OperationBindingCollection ist.
Namespace: System.Web.Services.Description
Assembly: System.Web.Services (in system.web.services.dll)
Syntax
'Declaration
Public Function Contains ( _
bindingOperation As OperationBinding _
) As Boolean
'Usage
Dim instance As OperationBindingCollection
Dim bindingOperation As OperationBinding
Dim returnValue As Boolean
returnValue = instance.Contains(bindingOperation)
public bool Contains (
OperationBinding bindingOperation
)
public:
bool Contains (
OperationBinding^ bindingOperation
)
public boolean Contains (
OperationBinding bindingOperation
)
public function Contains (
bindingOperation : OperationBinding
) : boolean
Parameter
- bindingOperation
Das OperationBinding, für das überprüft werden soll, ob es Member der Auflistung ist.
Rückgabewert
true, wenn der bindingOperation-Parameter ein Member von OperationBindingCollection ist, andernfalls false.
Beispiel
Das folgende Beispiel veranschaulicht die Verwendung der Contains-Methode.
' Check for the Add OperationBinding in the collection.
Dim contains As Boolean = _
myOperationBindingCollection.Contains(addOperationBinding)
Console.WriteLine(ControlChars.NewLine & _
"Whether the collection contains the Add " & _
"OperationBinding : " & contains.ToString())
// Check for the Add OperationBinding in the collection.
bool contains = myOperationBindingCollection.Contains
(addOperationBinding);
Console.WriteLine("\nWhether the collection contains the Add " +
"OperationBinding : " + contains);
// Check for the Add OperationBinding in the collection.
bool contains = myOperationBindingCollection->Contains( addOperationBinding );
Console::WriteLine( "\nWhether the collection contains the Add OperationBinding : {0}", contains );
// Check for the Add OperationBinding in the collection.
boolean contains = myOperationBindingCollection.
Contains(addOperationBinding);
Console.WriteLine("\nWhether the collection contains the Add "
+ "OperationBinding : " + (System.Boolean)contains);
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
OperationBindingCollection-Klasse
OperationBindingCollection-Member
System.Web.Services.Description-Namespace