SqlGeometry.InstanceOf(String) Method

Definition

Tests if the SqlGeometry instance is the same as the specified type.

[Microsoft.SqlServer.Server.SqlMethod(IsDeterministic=true, IsPrecise=true)]
public System.Data.SqlTypes.SqlBoolean InstanceOf (string geometryType);
member this.InstanceOf : string -> System.Data.SqlTypes.SqlBoolean
Public Function InstanceOf (geometryType As String) As SqlBoolean

Parameters

geometryType
String

Specifies the type of geometry that the calling SqlGeometry will be compared to.

Returns

SqlBoolean

A SqlBoolean value indicating if the calling SqlGeometry is of the specified geometry type. Returns true if the type of a SqlGeometry instance is the same as the specified type, or if the specified type is an ancestor of the instance type. Otherwise, returns false.

Attributes

Applies to