다음을 통해 공유


SqlGeometry.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.

참고 항목

참조

SqlGeometry 클래스

Microsoft.SqlServer.Types 네임스페이스