共用方式為


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 資料類型)