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)
Syntax
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
public SqlBoolean STWithin(
SqlGeography other
)
public:
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
SqlBoolean STWithin(
SqlGeography^ other
)
[<SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)>]
member STWithin :
other:SqlGeography -> SqlBoolean
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := False)>
Public Function STWithin (
other As SqlGeography
) As SqlBoolean
Parameters
other
Type: Microsoft.SqlServer.Types.SqlGeographyThe 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.
See Also
SqlGeography Class
Microsoft.SqlServer.Types Namespace
STWithin (geography Data Type)
Return to top