STCentroid 方法

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.