Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Collapse the table of content
Expand the table of content
Expand Minimize

SqlGeometry.STCentroid Method ()


Returns the geometric center of a SqlGeometry instance consisting of one or more polygons.

Namespace:   Microsoft.SqlServer.Types
Assembly:  Microsoft.SqlServer.Types (in Microsoft.SqlServer.Types.dll)

[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
public SqlGeometry STCentroid()

Return Value

Type: 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.

Return to top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft