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


Метод SqlGeometry.STIsRing

Determines whether the calling SqlGeometry instance is a ring.

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

Синтаксис

'Декларация
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := False)> _
Public Function STIsRing As SqlBoolean
'Применение
Dim instance As SqlGeometry 
Dim returnValue As SqlBoolean 

returnValue = instance.STIsRing()
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
public SqlBoolean STIsRing()
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
public:
SqlBoolean STIsRing()
[<SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)>]
member STIsRing : unit -> SqlBoolean
public function STIsRing() : SqlBoolean

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

Тип: System.Data.SqlTypes.SqlBoolean

Returns true if a geometry instance fulfills the following requirements:

  • It is a LineString instance.

  • It is closed.

  • It is simple.

Returns false if the LineString instance does not meet the requirements.

Замечания

For a SqlGeometry instance to be closed and simple, both STIsClosed and STIsSimple must return true when invoked on the instance. To determine the instance type of a SqlGeometry, use STGeometryType.

См. также

Справочник

SqlGeometry Класс

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