次の方法で共有


SqlGeometry.STNumPoints メソッド

SqlGeometry インスタンス内の各図形に含まれる地点の合計数を返します。

名前空間:  Microsoft.SqlServer.Types
アセンブリ:  Microsoft.SqlServer.Types (Microsoft.SqlServer.Types.dll)

構文

'宣言
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := True)> _
Public Function STNumPoints As SqlInt32
'使用
Dim instance As SqlGeometry 
Dim returnValue As SqlInt32 

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

戻り値

型: System.Data.SqlTypes.SqlInt32
呼び出し元インスタンス内の各図形に含まれる地点の合計数を示す SqlInt32 値です。

説明

このメソッドは、SqlGeometry インスタンスの記述に含まれている地点をカウントします。 重複する地点はカウントされます。 このインスタンスがコレクション型の場合、このメソッドは各要素内の地点の合計数を返します。

関連項目

参照

SqlGeometry クラス

Microsoft.SqlServer.Types 名前空間