共用方式為


SqlGeometry.STGeometryType 方法

Returns the Open Geospatial Consortium (OGC) type name represented by a geometry instance. SqlGeometry

命名空間:  Microsoft.SqlServer.Types
組件:  Microsoft.SqlServer.Types (在 Microsoft.SqlServer.Types.dll 中)

語法

'宣告
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := True)> _
Public Function STGeometryType As SqlString
'用途
Dim instance As SqlGeometry 
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.

備註

The OGC type names that can be returned by STGeometryType are Point, LineString, Polygon, GeometryCollection, MultiPoint, MultiLineString, and MultiPolygon.

請參閱

參考

SqlGeometry 類別

Microsoft.SqlServer.Types 命名空間