Returns the geometric center of a SqlGeometry instance consisting of one or more polygons.
命名空間: 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
A SqlGeometry object that represents the geometric center of the calling SqlGeometry.
備註
STCentroid returns null if the SqlGeometry instance is not a Polygon or MultiPolygon type.