SqlGeometry.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.

참고 항목

참조

SqlGeometry 클래스

Microsoft.SqlServer.Types 네임스페이스