Метод 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.