MakeValid 方法

Converts an invalid SqlGeometry instance into a SqlGeometry instance with a valid Open Geospatial Consortium (OGC) type.

命名空间:  Microsoft.SqlServer.Types
程序集:  Microsoft.SqlServer.Types(在 Microsoft.SqlServer.Types.dll 中)

语法

声明
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := False)> _
Public Function MakeValid As SqlGeometry
用法
Dim instance As SqlGeometry
Dim returnValue As SqlGeometry

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

返回值

类型:Microsoft.SqlServer.Types. . :: . .SqlGeometry
A SqlGeometry value with a valid OGC type.

注释

This method may cause a change in the type of the SqlGeometry instance, as well as cause the points of a SqlGeometry instance to shift slightly.