SqlSpatialFunctions.InstanceOf Method (DbGeometry, String)

.NET Framework (current version)
 

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

Namespace:   System.Data.Objects.SqlClient
Assembly:  System.Data.Entity (in System.Data.Entity.dll)

[EdmFunctionAttribute("SqlServer", "INSTANCEOF")]
public static Nullable<bool> InstanceOf(
	DbGeometry geometryValue,
	string geometryTypeName
)

Parameters

geometryValue
Type: System.Data.Spatial.DbGeometry

The geometry value.

geometryTypeName
Type: System.String

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

Return Value

Type: System.Nullable<Boolean>

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

.NET Framework
Available since 4.5
Return to top
Show: