次の方法で共有


SqlGeography.STArea メソッド

SqlGeography インスタンスの合計面積を返します。

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

構文

'宣言
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := False)> _
Public Function STArea As SqlDouble
'使用
Dim instance As SqlGeography 
Dim returnValue As SqlDouble 

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

戻り値

型: System.Data.SqlTypes.SqlDouble
合計面積を示す SqlDouble 値です。SqlGeography インスタンスに含まれるすべての図形が 0 次元または 1 次元の図形であるか、このインスタンスが空の場合、STArea は 0 を返します。

説明

STArea の結果は、geography インスタンスの SRID が使用する測定単位の平方で返されます。たとえば、インスタンスの SRID が 4326 の場合、STArea の結果は平方メートル単位で返されます。

関連項目

参照

SqlGeography クラス

Microsoft.SqlServer.Types 名前空間