Freigeben über


SqlGeometry.STCentroid-Methode

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)

Syntax

'Declaration
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := False)> _
Public Function STCentroid As SqlGeometry
'Usage
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

Rückgabewert

Typ: Microsoft.SqlServer.Types.SqlGeometry
A SqlGeometry object that represents the geometric center of the calling SqlGeometry.

Hinweise

STCentroid returns null if the SqlGeometry instance is not a Polygon or MultiPolygon type.

Siehe auch

Verweis

SqlGeometry Klasse

Microsoft.SqlServer.Types-Namespace