Share via


Switcher.ListViewCollection.Remove Method

Removes the first occurrence of a specific object from the collection.

Namespace:  Microsoft.SqlServer.Management.Controls
Assembly:  Microsoft.SqlServer.Management.Controls (in Microsoft.SqlServer.Management.Controls.dll)

Syntax

'Declaration
Public Function Remove ( _
    item As IView _
) As Boolean
'Usage
Dim instance As Switcher..::..ListViewCollection
Dim item As IView
Dim returnValue As Boolean

returnValue = instance.Remove(item)
public bool Remove(
    IView item
)
public:
virtual bool Remove(
    IView^ item
) sealed
abstract Remove : 
        item:IView -> bool 
override Remove : 
        item:IView -> bool 
public final function Remove(
    item : IView
) : boolean

Parameters

Return Value

Type: System.Boolean
True if item is successfully removed; otherwise, false. This method also returns false if item was not found in the original Collection.

Implements

ICollection<T>.Remove(T)