ControlCollection.Remove Method
Removes the first occurrence of a specific object from the ICollection.
Namespace: Microsoft.Uii.Common
Assembly: Microsoft.Uii.Common (in Microsoft.Uii.Common.dll)
Usage
'Usage
Dim instance As ControlCollection
Dim item As ControlElement
Dim returnValue As Boolean
returnValue = instance.Remove(item)
Syntax
'Declaration
Public Function Remove ( _
item As ControlElement _
) As Boolean
public bool Remove (
ControlElement item
)
public:
virtual bool Remove (
ControlElement^ item
) sealed
public final boolean Remove (
ControlElement item
)
public final function Remove (
item : ControlElement
) : boolean
Parameters
- item
The object to remove from the ICollection.
Return Value
true if item was successfully removed from the ICollection ; otherwise, false. This method also returns false if item is not found in the original ICollection.
Exceptions
Exception type | Condition |
---|---|
NotSupportedException | The ICollection is read-only. |
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
See Also
Reference
ControlCollection Class
ControlCollection Members
Microsoft.Uii.Common Namespace
Unified Service Desk
Send comments about this topic to Microsoft.
© 2015 Microsoft. All rights reserved.