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

SqlGeometry.STWithin Method (SqlGeometry)

 

Determines whether the current SqlGeometry is completely within the specified SqlGeometry instance.

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

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

Parameters

other
Type: Microsoft.SqlServer.Types.SqlGeometry

The SqlGeometry instance to compare to the current SqlGeometry.

Return Value

Type: System.Data.SqlTypes.SqlBoolean

Returns true if a SqlGeometry instance is completely within another SqlGeometry instance; otherwise, returns false.

This method always returns null if the spatial reference IDs (SRIDs) of the SqlGeometry instances do not match.

Return to top
Show:
© 2016 Microsoft