ArcGIS Pro 2.6 API Reference Guide
SymmetricDifference Method (IGeometryEngine)

ArcGIS.Core.Geometry Namespace > IGeometryEngine Interface : SymmetricDifference Method
The first geometry.
The second geometry.
Performs the symmetric difference operation on the two geometries. The symmetric difference is the union of the geometries minus the intersection.
Syntax
Geometry SymmetricDifference( 
   Geometry geometry1,
   Geometry geometry2
)
Function SymmetricDifference( _
   ByVal geometry1 As Geometry, _
   ByVal geometry2 As Geometry _
) As Geometry

Parameters

geometry1
The first geometry.
geometry2
The second geometry.

Return Value

Returns the result of the symmetric difference.
Exceptions
ExceptionDescription
Either geometry1 or geometry2 or both are null or empty.
The method is not implemented for GeometryBag.
Incompatible spatial references between the input geometries.
Input geometries do not have the same dimension.
The operation cannot be performed on a non-simple geometry.
Spatial reference of geometry1or geometry2is an image coordinate system.
Remarks

GeometryEngine SymmetricDifference

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 7

See Also

Reference

IGeometryEngine Interface
IGeometryEngine Members