次の方法で共有


SqlGeometry.STCentroid メソッド

1 つ以上の多角形で構成されている SqlGeometry インスタンスの重心を返します。

名前空間:  Microsoft.SqlServer.Types
アセンブリ:  Microsoft.SqlServer.Types (Microsoft.SqlServer.Types.dll)

構文

'宣言
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := False)> _
Public Function STCentroid As SqlGeometry
'使用
Dim instance As SqlGeometry 
Dim returnValue As SqlGeometry 

returnValue = instance.STCentroid()
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
public SqlGeometry STCentroid()
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
public:
SqlGeometry^ STCentroid()
[<SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)>]
member STCentroid : unit -> SqlGeometry
public function STCentroid() : SqlGeometry

戻り値

型: Microsoft.SqlServer.Types.SqlGeometry
呼び出し元の SqlGeometry の重心を表す SqlGeometry オブジェクトです。

説明

SqlGeometry インスタンスが Polygon 型または MultiPolygon 型ではない場合、STCentroid は NULL を返します。

関連項目

参照

SqlGeometry クラス

Microsoft.SqlServer.Types 名前空間