SqlGeography.STWithin(SqlGeography) Method

Definition

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

[Microsoft.SqlServer.Server.SqlMethod(IsDeterministic=true, IsPrecise=false)]
public System.Data.SqlTypes.SqlBoolean STWithin (Microsoft.SqlServer.Types.SqlGeography other);
[<Microsoft.SqlServer.Server.SqlMethod(IsDeterministic=true, IsPrecise=false)>]
member this.STWithin : Microsoft.SqlServer.Types.SqlGeography -> System.Data.SqlTypes.SqlBoolean
Public Function STWithin (other As SqlGeography) As SqlBoolean

Parameters

other
SqlGeography

The SqlGeography instance to compare to the calling instance.

Returns

1 if the SqlGeography is within the other SqlGeography instance.

Attributes

Applies to