Freigeben über


OperationBindingCollection.Contains(OperationBinding) Methode

Definition

Gibt einen Wert zurück, der angibt, ob die angegebene OperationBinding ein Member der OperationBindingCollection ist.

public:
 bool Contains(System::Web::Services::Description::OperationBinding ^ bindingOperation);
public bool Contains (System.Web.Services.Description.OperationBinding bindingOperation);
member this.Contains : System.Web.Services.Description.OperationBinding -> bool
Public Function Contains (bindingOperation As OperationBinding) As Boolean

Parameter

bindingOperation
OperationBinding

Die OperationBinding, für die überprüft werden soll, ob sie Member der Auflistung ist.

Gibt zurück

true, wenn der bindingOperation-Parameter ein Member der OperationBindingCollection ist, andernfalls false.

Beispiele

Im folgenden Beispiel wird die Verwendung der Contains-Methode gezeigt.

// 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.
bool contains = myOperationBindingCollection.Contains
   (addOperationBinding);
Console.WriteLine("\nWhether the collection contains the Add " +
   "OperationBinding : " + contains);
' 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())

Gilt für: