次の方法で共有


SqlGeography.STGeometryType メソッド

geography インスタンスで表される Open Geospatial Consortium (OGC) の型名を返します。

名前空間:  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
OGC の型名を含む SqlString 値です。

説明

STGeometryType メソッドによって返される OGC の型名は、Point、LineString、Polygon、GeometryCollection、MultiPoint、MultiLineString、および MultiPolygon のいずれかです。

関連項目

参照

SqlGeography クラス

Microsoft.SqlServer.Types 名前空間