Udostępnij za pośrednictwem


OperationBindingCollection.Remove(OperationBinding) Metoda

Definicja

Usuwa pierwsze wystąpienie określonego OperationBinding elementu z .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)

Parametry

bindingOperation
OperationBinding

Element OperationBinding do usunięcia z kolekcji.

Przykłady

W poniższym przykładzie pokazano użycie Remove metody .

// 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.")

Uwagi

Ta metoda wykonuje wyszukiwanie liniowe; dlatego średni czas wykonywania jest proporcjonalny do Count.

Elementy, które następują po usunięciu OperationBinding , przechodzą w górę, aby zajmować opuszczone miejsce.

Dotyczy