次の方法で共有


SqlGeography.STWithin メソッド

SqlGeography インスタンスが別の SqlGeography インスタンスに空間的に含まれている場合は 1 を返します。それ以外の場合は 0 を返します。

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

構文

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

returnValue = instance.STWithin(other)
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
public SqlBoolean STWithin(
    SqlGeography other
)
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
public:
SqlBoolean STWithin(
    SqlGeography^ other
)
[<SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)>]
member STWithin : 
        other:SqlGeography -> SqlBoolean
public function STWithin(
    other : SqlGeography
) : SqlBoolean

パラメーター

戻り値

型: System.Data.SqlTypes.SqlBoolean
SqlGeography が他の SqlGeography インスタンス内に含まれている場合は 1 です。

関連項目

参照

SqlGeography クラス

Microsoft.SqlServer.Types 名前空間

その他の技術情報

STWithin (geography データ型)