SqlGeography.STIsValid 方法 ()
根据 geography 实例的开放地理空间联盟 (OGC) 类型,指定该实例的格式是否正确并将其识别为有效地理对象。
命名空间: Microsoft.SqlServer.Types
程序集: Microsoft.SqlServer.Types(位于 Microsoft.SqlServer.Types.dll)
语法
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
public SqlBoolean STIsValid()
public:
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
SqlBoolean STIsValid()
[<SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)>]
member STIsValid : unit -> SqlBoolean
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := False)>
Public Function STIsValid As SqlBoolean
返回值
Type: System.Data.SqlTypes.SqlBoolean
如果 true 实例的格式正确并有效,则为 geography;否则为 false。
另请参阅
SqlGeography 类
Microsoft.SqlServer.Types 命名空间
STIsValid(geography 数据类型)
返回页首