Freigeben über


OperationBindingCollection.Remove(OperationBinding) Methode

Definition

Entfernt das erste Vorkommen der angegebenen OperationBinding aus der OperationBindingCollection.

public:
 void Remove(System::Web::Services::Description::OperationBinding ^ bindingOperation);
public void Remove (System.Web.Services.Description.OperationBinding bindingOperation);
member this.Remove : System.Web.Services.Description.OperationBinding -> unit
Public Sub Remove (bindingOperation As OperationBinding)

Parameter

bindingOperation
OperationBinding

Die aus der Auflistung zu entfernende OperationBinding.

Beispiele

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

// Get the OperationBinding of the Add operation from the collection.
OperationBinding^ myOperationBinding = myOperationBindingCollection[ 3 ];

// Remove the OperationBinding of the Add operation from
// the collection.
myOperationBindingCollection->Remove( myOperationBinding );
Console::WriteLine( "\nRemoved the OperationBinding of the "
"Add operation from the collection." );
// Get the OperationBinding of the Add operation from the collection.
OperationBinding myOperationBinding =
   myOperationBindingCollection[3];

// Remove the OperationBinding of the Add operation from
// the collection.
myOperationBindingCollection.Remove(myOperationBinding);
Console.WriteLine("\nRemoved the OperationBinding of the " +
   "Add operation from the collection.");
' Get the OperationBinding of the Add operation from the collection.
Dim myOperationBinding As OperationBinding = _
   myOperationBindingCollection(3)

' Remove the OperationBinding of the 'Add' operation from
' the collection.
myOperationBindingCollection.Remove(myOperationBinding)
Console.WriteLine(ControlChars.NewLine & _
   "Removed the OperationBinding of the " & _
   "Add operation from the collection.")

Hinweise

Diese Methode führt eine lineare Suche aus; Daher ist die durchschnittliche Ausführungszeit proportional zu Count.

Die Elemente, die dem entfernten folgen OperationBinding nach oben, um die frei gewordene Stelle einzunehmen.

Gilt für