SqlGeography.STGeometryType 方法
Returns the Open Geospatial Consortium (OGC) type name represented by a geography instance.
命名空間: Microsoft.SqlServer.Types
組件: Microsoft.SqlServer.Types (在 Microsoft.SqlServer.Types.dll 中)
語法
'宣告
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := True)> _
Public Function STGeometryType As SqlString
'用途
Dim instance As SqlGeography
Dim returnValue As SqlString
returnValue = instance.STGeometryType()
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = true)]
public SqlString STGeometryType()
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = true)]
public:
SqlString STGeometryType()
[<SqlMethodAttribute(IsDeterministic = true, IsPrecise = true)>]
member STGeometryType : unit -> SqlString
public function STGeometryType() : SqlString
傳回值
型別:System.Data.SqlTypes.SqlString
A SqlString value containing the OGC type name.
備註
The OGC type names that can be returned by the STGeometryType method are Point, LineString, Polygon, GeometryCollection, MultiPoint, MultiLineString, and MultiPolygon.