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 命名空间