다음을 통해 공유


SqlGeometry.STIsValid 메서드

Determines whether the SqlGeometry instance is well-formed.

네임스페이스:  Microsoft.SqlServer.Types
어셈블리:  Microsoft.SqlServer.Types(Microsoft.SqlServer.Types.dll)

구문

‘선언
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := False)> _
Public Function STIsValid As SqlBoolean
‘사용 방법
Dim instance As SqlGeometry 
Dim returnValue As SqlBoolean 

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

반환 값

유형: System.Data.SqlTypes.SqlBoolean
Returns true if a SqlGeometry instance is well-formed, based on its Open Geospatial Consortium (OGC) type. Returns false if a SqlGeometry instance is not well-formed.

주의

The OGC type of a SqlGeometry instance can be determined by invoking STGeometryType.

SQL Server produces only valid SqlGeometry instances, but allows for the storage and retrieval of invalid instances. A valid instance that represents the same point set of any invalid instance can be retrieved using the MakeValid method.

참고 항목

참조

SqlGeometry 클래스

Microsoft.SqlServer.Types 네임스페이스