Freigeben über


SqlGeometry.STDifference-Methode

Returns an object that represents the points from one SqlGeometry instance that do not lie within another SqlGeometry instance.

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

Syntax

'Declaration
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := False)> _
Public Function STDifference ( _
    other As SqlGeometry _
) As SqlGeometry
'Usage
Dim instance As SqlGeometry 
Dim other As SqlGeometry 
Dim returnValue As SqlGeometry 

returnValue = instance.STDifference(other)
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
public SqlGeometry STDifference(
    SqlGeometry other
)
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
public:
SqlGeometry^ STDifference(
    SqlGeometry^ other
)
[<SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)>]
member STDifference : 
        other:SqlGeometry -> SqlGeometry
public function STDifference(
    other : SqlGeometry
) : SqlGeometry

Parameter

Rückgabewert

Typ: Microsoft.SqlServer.Types.SqlGeometry
A SqlGeometry object that represents the unique points in the calling SqlGeometry.

Hinweise

This method always returns nullein NULL-Verweis (Nothing in Visual Basic) if the spatial reference IDs (SRIDs) of the SqlGeometry instances do not match.

Siehe auch

Verweis

SqlGeometry Klasse

Microsoft.SqlServer.Types-Namespace