Compartir a través de


SqlGeography.STWithin Método

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

Espacio de nombres:  Microsoft.SqlServer.Types
Ensamblado:  Microsoft.SqlServer.Types (en Microsoft.SqlServer.Types.dll)

Sintaxis

'Declaración
<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 devuelto

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

Vea también

Referencia

SqlGeography Clase

Espacio de nombres Microsoft.SqlServer.Types

Otros recursos

STWithin (tipo de datos geography)