Condividi tramite


Metodo SqlGeography.STWithin

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

Spazio dei nomi  Microsoft.SqlServer.Types
Assembly:  Microsoft.SqlServer.Types (in Microsoft.SqlServer.Types.dll)

Sintassi

'Dichiarazione
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := False)> _
Public Function STWithin ( _
    other As SqlGeography _
) As SqlBoolean
'Utilizzo
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

Parametri

Valore restituito

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

Vedere anche

Riferimento

SqlGeography Classe

Spazio dei nomi Microsoft.SqlServer.Types

Altre risorse

STWithin (tipo di dati geography)