Share via


SqlGeometry.STWithin(SqlGeometry) Method

Definition

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

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

Parameters

other
SqlGeometry

The SqlGeometry instance to compare to the current SqlGeometry.

Returns

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

Attributes

Applies to