GeometryCollection.Add

GeometryCollection.Add method

Adds the specified geometry to the collection.

public void Add(IGeometry geometry)
ParameterTypeDescription
geometryIGeometryThe geometry to add.

Exceptions

exceptioncondition
ArgumentNullExceptionThe argument is null.
ArgumentExceptionThe collection does not accept geometries of this type.
ArgumentExceptionSpatialReferenceSystem of this geometry and SpatialReferenceSystem of argument are both not null and don’t equal to each other.

See Also