STWithin Method
TOC
Collapse the table of content
Expand the table of content

SqlGeography.STWithin Method (SqlGeography)

 

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 Function STWithin (
	other As SqlGeography
) As SqlBoolean

Parameters

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
Show:
© 2016 Microsoft