InstanceOf Method (DbGeography, String)
Collapse the table of content
Expand the table of content

SqlSpatialFunctions.InstanceOf Method (DbGeography, String)

.NET Framework (current version)
 

Tests if the SqlGeography 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(
	DbGeography geographyValue,
	string geometryTypeName
)

Parameters

geographyValue
Type: System.Data.Spatial.DbGeography

The geography 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:
© 2016 Microsoft