STDifference Method
Collapse the table of content
Expand the table of content

SqlGeography.STDifference Method (SqlGeography)


Returns an object representing the points from one SqlGeography instance that do not lie within another SqlGeography instance.

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

<SqlMethodAttribute(IsDeterministic := True, IsPrecise := False)>
Public Function STDifference (
	other As SqlGeography
) As SqlGeography


Type: Microsoft.SqlServer.Types.SqlGeography

Another SqlGeography instance that indicates which points to remove from the instance on which this method is being invoked.

Return Value

Type: Microsoft.SqlServer.Types.SqlGeography

A SqlGeography value that represents all of the points that are unique to the calling instance.

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

Return to top
© 2015 Microsoft