Removes the first occurrence of a specific object from the ICollection<T>.
Namespace: XMLCommentsExamples.DocumentationInheritanceAssembly: XMLCommentsExamples (in XMLCommentsExamples.dll) Version: 2014.1.26.0
Syntax
Parameters
- item
- Type: System.Int32
The object to remove from the ICollection<T>.
Return Value
Type: Booleantrue if item was successfully removed from the ICollection<T>; otherwise, false. This method also returns false if item is not found in the original ICollection<T>.
Implements
ICollection<T>.Remove(T)Exceptions
Exception | Condition |
---|---|
NotSupportedException | The ICollection<T> is read-only. |
See Also