SqlGeography.STWithin 方法
Returns 1 if a SqlGeography instance is spatially within another SqlGeography instance; otherwise, returns 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
參數
- other
型別:Microsoft.SqlServer.Types.SqlGeography
The SqlGeography instance to compare to the calling instance.
傳回值
型別:System.Data.SqlTypes.SqlBoolean
1 if the SqlGeography is within the other SqlGeography instance.
請參閱
參考
Microsoft.SqlServer.Types 命名空間