Export (0) Print
Expand All

SqlGeography.STWithin Method (SqlGeography)


Applies To: SQL Server 2016 Preview

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

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

[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
public SqlBoolean STWithin(
	SqlGeography other


Type: Microsoft.SqlServer.Types.SqlGeography

The SqlGeography instance to compare to the calling instance.

Return Value

Type: System.Data.SqlTypes.SqlBoolean

1 if the SqlGeography is within the other SqlGeography instance.

Return to top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft