Switcher.WidgetsCollection.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 IWidget _
) As Boolean
'Usage
Dim instance As Switcher..::..WidgetsCollection
Dim item As IWidget
Dim returnValue As Boolean
returnValue = instance.Remove(item)
public bool Remove(
IWidget item
)
public:
virtual bool Remove(
IWidget^ item
) sealed
abstract Remove :
item:IWidget -> bool
override Remove :
item:IWidget -> bool
public final function Remove(
item : IWidget
) : boolean
Parameters
- item
Type: Microsoft.SqlServer.Management.Controls.IWidget
The object to remove from the collection. The value can be a null reference (Nothing in Visual Basic) for reference types.
Return Value
Type: System.Boolean
true if the item is successfully removed; otherwise, false. This method also returns false if the item was not found in the original collection.