Share via


SqlGeography.MakeValid Method

Converts a geography instance that is not valid into a valid geography instance with a valid Open Geospatial Consortium (OGC) type.

Namespace:  Microsoft.SqlServer.Types
Assembly:  Microsoft.SqlServer.Types (in Microsoft.SqlServer.Types.dll)

Syntax

'Declaration
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := False)> _
Public Function MakeValid As SqlGeography
'Usage
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

Return Value

Type: Microsoft.SqlServer.Types.SqlGeography
Returns SqlGeography.

See Also

Reference

SqlGeography Class

Microsoft.SqlServer.Types Namespace

Other Resources

MakeValid (geography Data Type)