Share via


SqlGeometry.STTouches Method

Determines whether the specified SqlGeometry touches the current SqlGeometry.

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

Syntax

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

Parameters

Return Value

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

Remarks

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

This method always returns nulla null reference (Nothing in Visual Basic) if the spatial reference IDs (SRIDs) of the SqlGeometry instances do not match.

See Also

Reference

SqlGeometry Class

Microsoft.SqlServer.Types Namespace