Partilhar via


Método SqlGeography.STWithin

Returns 1 if a SqlGeography instance is spatially within another SqlGeography instance; otherwise, returns 0.

Namespace:  Microsoft.SqlServer.Types
Assembly:  Microsoft.SqlServer.Types (em Microsoft.SqlServer.Types.dll)

Sintaxe

'Declaração
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := False)> _
Public Function STWithin ( _
    other As SqlGeography _
) As SqlBoolean
'Uso
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

Parâmetros

Valor de retorno

Tipo: System.Data.SqlTypes.SqlBoolean
1 if the SqlGeography is within the other SqlGeography instance.

Consulte também

Referência

SqlGeography Classe

Namespace Microsoft.SqlServer.Types

Outros recursos

STWithin (tipo de dados geography)