共用方式為


SqlGeography.NumRings 方法

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 Function NumRings As SqlInt32
'用途
Dim instance As SqlGeography 
Dim returnValue As SqlInt32 

returnValue = instance.NumRings()
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = true)]
public SqlInt32 NumRings()
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = true)]
public:
SqlInt32 NumRings()
[<SqlMethodAttribute(IsDeterministic = true, IsPrecise = true)>]
member NumRings : unit -> SqlInt32
public function NumRings() : SqlInt32

傳回值

型別: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.

請參閱

參考

SqlGeography 類別

Microsoft.SqlServer.Types 命名空間