SqlGeography.MakeValid 方法

Converts a geography instance that is not valid into a valid geography 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 SqlGeography
用法
Dim instance As SqlGeography 
Dim returnValue As SqlGeography 

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

返回值

类型:Microsoft.SqlServer.Types.SqlGeography
Returns SqlGeography.

请参阅

参考

SqlGeography 类

Microsoft.SqlServer.Types 命名空间

其他资源

MakeValid(geography 数据类型)