Condividi tramite


Metodo SqlGeography.STDifference

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

Spazio dei nomi  Microsoft.SqlServer.Types
Assembly:  Microsoft.SqlServer.Types (in Microsoft.SqlServer.Types.dll)

Sintassi

'Dichiarazione
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := False)> _
Public Function STDifference ( _
    other As SqlGeography _
) As SqlGeography
'Utilizzo
Dim instance As SqlGeography 
Dim other As SqlGeography 
Dim returnValue As SqlGeography 

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

Parametri

Valore restituito

Tipo: Microsoft.SqlServer.Types.SqlGeography
A SqlGeography value that represents all of the points that are unique to the calling instance.

Osservazioni

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

Vedere anche

Riferimento

SqlGeography Classe

Spazio dei nomi Microsoft.SqlServer.Types