SqlGeography.NumRings 메서드

SQL Server 2012

Returns the total number of rings in a Polygon instance.

네임스페이스:  Microsoft.SqlServer.Types
어셈블리:  Microsoft.SqlServer.Types(Microsoft.SqlServer.Types.dll)

[SqlMethodAttribute(IsDeterministic = true, IsPrecise = true)]
public SqlInt32 NumRings()

반환 값

유형: System.Data.SqlTypes.SqlInt32
A SqlInt32 value specifying the total number of rings. This method will return NULL if this is not a Polygon instance and will return 0 if the instance is empty.

In the SQL Server geography type, external and internal rings are not distinguished, as any ring can be taken to be the external ring.

This method is precise.

커뮤니티 추가 항목