SqlGeography.STContains Method (SqlGeography)


Specifies whether the calling SqlGeography instance spatially contains the SqlGeography instance passed to the method.

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

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


Type: Microsoft.SqlServer.Types.SqlGeography

The SqlGeography instance to check if it is contained within the calling instance.

Return Value

Type: System.Data.SqlTypes.SqlBoolean

true if the calling instance contains the other instance; otherwise, false.

Return to top