SqlGeography.STIsValid Method

Specifies whether a geography instance is well-formed and recognized as a valid geography object based on its 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 STIsValid As SqlBoolean
'Usage
Dim instance As SqlGeography
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

Return Value

Type: System.Data.SqlTypes.SqlBoolean
true if the geography instance is well-formed and valid; otherwise, false.

See Also

Reference

SqlGeography Class

Microsoft.SqlServer.Types Namespace

Other Resources

STIsValid (geography Data Type)