Compartir a través de


SqlGeometry.STDifference Método

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

Espacio de nombres:  Microsoft.SqlServer.Types
Ensamblado:  Microsoft.SqlServer.Types (en Microsoft.SqlServer.Types.dll)

Sintaxis

'Declaración
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := False)> _
Public Function STDifference ( _
    other As SqlGeometry _
) As SqlGeometry
'Uso
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

Parámetros

Valor devuelto

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

Comentarios

This method always returns nulles una referencia NULL (Nothing en Visual Basic). if the spatial reference IDs (SRIDs) of the SqlGeometry instances do not match.

Vea también

Referencia

SqlGeometry Clase

Espacio de nombres Microsoft.SqlServer.Types