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


Метод SqlGeometry.STIsValid

Determines whether the SqlGeometry instance is well-formed.

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

Синтаксис

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

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

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

Тип: System.Data.SqlTypes.SqlBoolean
Returns true if a SqlGeometry instance is well-formed, based on its Open Geospatial Consortium (OGC) type. Returns false if a SqlGeometry instance is not well-formed.

Замечания

The OGC type of a SqlGeometry instance can be determined by invoking STGeometryType.

SQL Server produces only valid SqlGeometry instances, but allows for the storage and retrieval of invalid instances. A valid instance that represents the same point set of any invalid instance can be retrieved using the MakeValid method.

См. также

Справочник

SqlGeometry Класс

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