PondContourCollectionRemove Method

Removes the contour with the specified ID from the collection.

Namespace: Autodesk.Civil.DatabaseServices
Assembly: AeccDrainageDesignMgd (in AeccDrainageDesignMgd.dll) Version: 13.9.960.0
Syntax
public bool Remove(
	string id
)

Parameters

id  String
The ID of the contour to remove.

Return Value

Boolean
True if the contour was found and removed; False if no contour with the specified ID exists.
Exceptions
ExceptionCondition
InvalidOperationExceptionThrown when less than three contours in collection.
Remarks

Return value: This method returns false if the ID is not found, rather than throwing an exception. This allows for safe removal operations without requiring a prior Contains() check.

Performance: This method is more efficient than using IndexOf() followed by RemoveAt() as it performs the lookup and removal in a single operation.

See Also