Remove

IPortionCollection.Remove method

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

public bool Remove(IPortion item)
ParameterTypeDescription
itemIPortionThe 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

exceptioncondition
NotSupportedExceptionThe ICollection is read-only.

See Also