OperationBindingCollection.Remove Method
Removes the first occurrence of the specified OperationBinding from the OperationBindingCollection.
[Visual Basic] Public Sub Remove( _ ByVal bindingOperation As OperationBinding _ ) [C#] public void Remove( OperationBinding bindingOperation ); [C++] public: void Remove( OperationBinding* bindingOperation ); [JScript] public function Remove( bindingOperation : OperationBinding );
Parameters
- bindingOperation
- The OperationBinding to remove from the collection.
Remarks
This method performs a linear search; therefore, the average execution time is proportional to Count.
The elements that follow the removed OperationBinding move up to occupy the vacated spot.
Example
[Visual Basic, C#, C++] The following example demonstrates the use of the Remove method.
[Visual Basic] ' 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.") [C#] // 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."); [C++] // Get the OperationBinding of the Add operation from the collection. OperationBinding* myOperationBinding = myOperationBindingCollection->Item[3]; // Remove the OperationBinding of the Add operation from // the collection. myOperationBindingCollection->Remove(myOperationBinding); Console::WriteLine(S"\nRemoved the OperationBinding of the " S"Add operation from the collection.");
[JScript] No example is available for JScript. To view a Visual Basic, C#, or C++ example, click the Language Filter button
in the upper-left corner of the page.
Requirements
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
See Also
OperationBindingCollection Class | OperationBindingCollection Members | System.Web.Services.Description Namespace