SqlGeometry.STGeometryType 方法 ()

 

返回由几何图形实例表示的开放地理空间联盟 (OGC) 类型名称。SqlGeometry

命名空间:   Microsoft.SqlServer.Types
程序集:  Microsoft.SqlServer.Types(位于 Microsoft.SqlServer.Types.dll)

语法

[SqlMethodAttribute(IsDeterministic = true, IsPrecise = true)]
public SqlString STGeometryType()
public:
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = true)]
SqlString STGeometryType()
[<SqlMethodAttribute(IsDeterministic = true, IsPrecise = true)>]
member STGeometryType : unit -> SqlString
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := True)>
Public Function STGeometryType As SqlString

返回值

Type: System.Data.SqlTypes.SqlString

一个包含 OGC 类型的 SqlString 值。

备注

可以通过返回的 OGC 类型名称 STGeometryType 是点、 LineString、 Polygon、 GeometryCollection、 MultiPoint、 MultiLineString 和 MultiPolygon。

另请参阅

SqlGeometry 类
Microsoft.SqlServer.Types 命名空间

返回页首