SqlGeography.STWithin 方法 (SqlGeography)

 

如果 SqlGeography 实例在空间上包含在另一个 SqlGeography 实例中,则返回 1;否则,返回 0。

命名空间:   Microsoft.SqlServer.Types
程序集:  Microsoft.SqlServer.Types(位于 Microsoft.SqlServer.Types.dll)

语法

[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
public SqlBoolean STWithin(
    SqlGeography other
)
public:
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
SqlBoolean STWithin(
    SqlGeography^ other
)
[<SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)>]
member STWithin : 
        other:SqlGeography -> SqlBoolean
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := False)>
Public Function STWithin (
    other As SqlGeography
) As SqlBoolean

参数

返回值

Type: System.Data.SqlTypes.SqlBoolean

如果 SqlGeography 位于其他 SqlGeography 实例内,则为 1。

另请参阅

SqlGeography 类
Microsoft.SqlServer.Types 命名空间
STWithin(geography 数据类型)

返回页首