Поделиться через


Метод SqlGeometry.STTouches

Determines whether the specified SqlGeometry touches the current SqlGeometry.

Пространство имен:  Microsoft.SqlServer.Types
Сборка:  Microsoft.SqlServer.Types (в Microsoft.SqlServer.Types.dll)

Синтаксис

'Декларация
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := False)> _
Public Function STTouches ( _
    other As SqlGeometry _
) As SqlBoolean
'Применение
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

Параметры

Возвращаемое значение

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

Замечания

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

This method always returns nullпустая ссылка (Nothing в Visual Basic) if the spatial reference IDs (SRIDs) of the SqlGeometry instances do not match.

См. также

Справочник

SqlGeometry Класс

Пространство имен Microsoft.SqlServer.Types