SqlSpatialFunctions.InstanceOf Method

Definition

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

Overloads

InstanceOf(DbGeometry, String)

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

InstanceOf(DbGeography, String)

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

InstanceOf(DbGeometry, String)

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

public:
 static Nullable<bool> InstanceOf(System::Data::Spatial::DbGeometry ^ geometryValue, System::String ^ geometryTypeName);
[System.Data.Objects.DataClasses.EdmFunction("SqlServer", "INSTANCEOF")]
public static bool? InstanceOf (System.Data.Spatial.DbGeometry geometryValue, string geometryTypeName);
[<System.Data.Objects.DataClasses.EdmFunction("SqlServer", "INSTANCEOF")>]
static member InstanceOf : System.Data.Spatial.DbGeometry * string -> Nullable<bool>
Public Shared Function InstanceOf (geometryValue As DbGeometry, geometryTypeName As String) As Nullable(Of Boolean)

Parameters

geometryValue
DbGeometry

The geometry value.

geometryTypeName
String

A string that specifies one of the 12 types exposed in the geography type hierarchy.

Returns

A string that specifies one of the 12 types exposed in the geography type hierarchy.

Attributes

Applies to

InstanceOf(DbGeography, String)

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

public:
 static Nullable<bool> InstanceOf(System::Data::Spatial::DbGeography ^ geographyValue, System::String ^ geometryTypeName);
[System.Data.Objects.DataClasses.EdmFunction("SqlServer", "INSTANCEOF")]
public static bool? InstanceOf (System.Data.Spatial.DbGeography geographyValue, string geometryTypeName);
[<System.Data.Objects.DataClasses.EdmFunction("SqlServer", "INSTANCEOF")>]
static member InstanceOf : System.Data.Spatial.DbGeography * string -> Nullable<bool>
Public Shared Function InstanceOf (geographyValue As DbGeography, geometryTypeName As String) As Nullable(Of Boolean)

Parameters

geographyValue
DbGeography

The geography value.

geometryTypeName
String

A string that specifies one of the 12 types exposed in the geography type hierarchy.

Returns

A string that specifies one of the 12 types exposed in the geography type hierarchy.

Attributes

Applies to