OperationCollection::Remove Method (Operation^)

 

Removes the first occurrence of the specified Operation from the OperationCollection.

Namespace:   System.Web.Services.Description
Assembly:  System.Web.Services (in System.Web.Services.dll)

public:
void Remove(
	Operation^ operation
)

Parameters

operation
Type: System.Web.Services.Description::Operation^

The Operation to remove from the collection.

This method performs a linear search; therefore, the average execution time is proportional to Count.

The elements that follow the removed Operation move up to occupy the vacated spot.

The following example demonstrates the use of the Remove method.

myOperationCollection->Remove( myOperation );

// Insert the 'myOpearation' operation at the index '0'.
myOperationCollection->Insert( 0, myOperation );
Console::WriteLine( "The operation at index '0' is : {0}", myOperationCollection[ 0 ]->Name );

.NET Framework
Available since 1.1
Return to top
Show: