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.
Entfernt das erste Vorkommen des angegebenen OperationBinding aus der OperationBindingCollection.
Namespace: System.Web.Services.Description
Assembly: System.Web.Services (in system.web.services.dll)
Syntax
'Declaration
Public Sub Remove ( _
bindingOperation As OperationBinding _
)
'Usage
Dim instance As OperationBindingCollection
Dim bindingOperation As OperationBinding
instance.Remove(bindingOperation)
public void Remove (
OperationBinding bindingOperation
)
public:
void Remove (
OperationBinding^ bindingOperation
)
public void Remove (
OperationBinding bindingOperation
)
public function Remove (
bindingOperation : OperationBinding
)
Parameter
- bindingOperation
Das aus der Auflistung zu entfernende OperationBinding.
Hinweise
Diese Methode führt eine lineare Suche aus. Die durchschnittliche Ausführungszeit ist daher proportional zu Count.
Die Elemente, die auf das entfernte OperationBinding folgen, werden nach oben verschoben, um die frei gewordene Stelle einzunehmen.
Beispiel
Das folgende Beispiel veranschaulicht die Verwendung der Remove-Methode.
' 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.")
// 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.
OperationBinding myOperationBinding = myOperationBindingCollection.
get_Item(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.");
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