Partilhar via


Método SqlGeometry.STTouches

Determines whether the specified SqlGeometry touches the current SqlGeometry.

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

Sintaxe

'Declaração
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := False)> _
Public Function STTouches ( _
    other As SqlGeometry _
) As SqlBoolean
'Uso
Dim instance As SqlGeometry 
Dim other As SqlGeometry 
Dim returnValue As SqlBoolean 

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

Parâmetros

Valor de retorno

Tipo: System.Data.SqlTypes.SqlBoolean
Returns true if a SqlGeometry instance spatially touches another SqlGeometry instance. Returns false if it does not.

Comentários

Two SqlGeometry instances touch if their point sets intersect, but their interiors do not intersect.

This method always returns nulluma referência nula (Nothing no Visual Basic) if the spatial reference IDs (SRIDs) of the SqlGeometry instances do not match.

Consulte também

Referência

SqlGeometry Classe

Namespace Microsoft.SqlServer.Types