Partager via


Méthode SqlGeometry.STTouches

Determines whether the specified SqlGeometry touches the current SqlGeometry.

Espace de noms :  Microsoft.SqlServer.Types
Assembly :  Microsoft.SqlServer.Types (en Microsoft.SqlServer.Types.dll)

Syntaxe

'Déclaration
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := False)> _
Public Function STTouches ( _
    other As SqlGeometry _
) As SqlBoolean
'Utilisation
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

Paramètres

Valeur de retour

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

Notes

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

This method always returns nullune référence Null (Nothing dans Visual Basic) if the spatial reference IDs (SRIDs) of the SqlGeometry instances do not match.

Voir aussi

Référence

SqlGeometry Classe

Espace de noms Microsoft.SqlServer.Types