SqlGeometry.STSymDifference Method (SqlGeometry)

 

Applies To: SQL Server 2016 Preview

Returns an object that represents all points that are either in one SqlGeometry instance or another SqlGeometry instance, but not those points that lie in both instances.

Namespace:   Microsoft.SqlServer.Types
Assembly:  Microsoft.SqlServer.Types (in Microsoft.SqlServer.Types.dll)

Syntax

[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
public SqlGeometry STSymDifference(
    SqlGeometry other
)
public:
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
SqlGeometry^ STSymDifference(
    SqlGeometry^ other
)
[<SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)>]
member STSymDifference : 
        other:SqlGeometry -> SqlGeometry
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := False)>
Public Function STSymDifference (
    other As SqlGeometry
) As SqlGeometry

Parameters

Return Value

Type: Microsoft.SqlServer.Types.SqlGeometry

A SqlGeometry object that represents all points in the calling SqlGeometry and the specified SqlGeometry instances that are not present in both instances..

Remarks

This method always returns null if the spatial reference IDs (SRIDs) of the SqlGeometry instances do not match.

See Also

SqlGeometry Class
Microsoft.SqlServer.Types Namespace

Return to top