PondContourCollectionSet(PondContour) Method

Sets (replaces) multiple contours in the collection.

Namespace: Autodesk.Civil.DatabaseServices
Assembly: AeccDrainageDesignMgd (in AeccDrainageDesignMgd.dll) Version: 13.9.960.0
Syntax
public void Set(
	PondContour[] contours
)

Parameters

contours  PondContour
Array of contours to set in the collection.
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown when the contours array is null or contains null entries.
ArgumentExceptionThrown when the contours array contains duplicate IDs.
Remarks

Batch upsert: For each contour: if ID exists, replaces it; if not, adds it. This is more efficient than calling Set() multiple times individually.

Snapshot pattern: This method works seamlessly with the snapshot pattern, allowing efficient batch updates of multiple contours that were retrieved as independent copies.

See Also