Set DocumentationRemove Method
Removes the first occurrence of a specific object from the ICollectionT.
Definition
Namespace: XMLCommentsExamples.DocumentationInheritance
Assembly: XMLCommentsExamples (in XMLCommentsExamples.dll) Version: 2025.4.26.0
if item was successfully removed from the ICollectionT; otherwise, . This method also returns if item is not found in the original ICollectionT.
Assembly: XMLCommentsExamples (in XMLCommentsExamples.dll) Version: 2025.4.26.0
C#
public bool Remove(
int item
)VB
Public Function Remove (
item As Integer
) As BooleanC++
public:
virtual bool Remove(
int item
) sealedF#
abstract Remove :
item : int -> bool
override Remove :
item : int -> bool Parameters
- item Int32
- The object to remove from the ICollectionT.
Return Value
Booleanif item was successfully removed from the ICollectionT; otherwise, . This method also returns if item is not found in the original ICollectionT.
Implements
ICollectionTRemove(T)Exceptions
| NotSupportedException | The ICollectionT is read-only. |