共用方式為


SqlGeography.STContains 方法

Specifies whether the calling SqlGeography instance spatially contains the SqlGeography instance passed to the method.

命名空間:  Microsoft.SqlServer.Types
組件:  Microsoft.SqlServer.Types (在 Microsoft.SqlServer.Types.dll 中)

語法

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

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

參數

傳回值

型別:System.Data.SqlTypes.SqlBoolean
true if the calling instance contains the other instance; otherwise, false.

請參閱

參考

SqlGeography 類別

Microsoft.SqlServer.Types 命名空間

其他資源

STContains (geography 資料類型)