다음을 통해 공유


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.