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


Метод SqlGeometry.IsValidDetailed

Returns a message to help identify validity issues with a spatial object.

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

Синтаксис

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

returnValue = instance.IsValidDetailed()
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
public string IsValidDetailed()
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
public:
String^ IsValidDetailed()
[<SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)>]
member IsValidDetailed : unit -> string
public function IsValidDetailed() : String

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

Тип: System.String
A message indicating whether the spatial object is valid or not valid, and if not valid, why not.

Замечания

If data is not valid for multiple reasons, only one will be returned. Each message will have a unique ID, so the process of detecting validity and fixing it can be automated. An object can be automatically validated by calling the MakeValid() method.

Indexing values for sub-objects will start counting each curve from 1. The invalid curve could be accessed with the STCurveN method with the given value. The same is true for STRingN, passed index for rings matched value used for STRingN to get the same ring.

См. также

Справочник

SqlGeometry Класс

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