Microsoft.SqlServer.Types Namespace
The Microsoft.SqlServer.Types namespace contains classes used when working with the HierarchyID data type and the spatial data types, such as the geometry and geographic data types.
| Class | Description | |
|---|---|---|
![]() | GeographyCollectionAggregate | This API supports the product infrastructure and is not intended to be used directly from your code. Represents a geography collection from the given set of SqlGeography objects. |
![]() | GeographyConvexHullAggregate | This API supports the product infrastructure and is not intended to be used directly from your code. Represents the convex hull for the given set of SqlGeography objects. |
![]() | GeographyEnvelopeAggregate | This API supports the product infrastructure and is not intended to be used directly from your code. Represents a geography envelope from the given set of SqlGeography objects. |
![]() | GeographyTessellationFunction | This API supports the product infrastructure and is not intended to be used directly from your code. Represents the geography tessellation functions. |
![]() | GeographyUnionAggregate | This API supports the product infrastructure and is not intended to be used directly from your code. Represents a union of a set of SqlGeography objects. |
![]() | GeometryCollectionAggregate | This API supports the product infrastructure and is not intended to be used directly from your code. Represents a geometry collection from the given set of SqlGeometry objects. |
![]() | GeometryConvexHullAggregate | This API supports the product infrastructure and is not intended to be used directly from your code. Represents the convex hull for the given set of SqlGeometry objects. |
![]() | GeometryEnvelopeAggregate | This API supports the product infrastructure and is not intended to be used directly from your code. Represents a geometry envelope based on the given set of SqlGeometry objects. |
![]() | GeometryTessellationFunction | This API supports the product infrastructure and is not intended to be used directly from your code. Provides static methods for creating a geometry tessellation. |
![]() | GeometryUnionAggregate | This API supports the product infrastructure and is not intended to be used directly from your code. Represents a union from a set of SqlGeometry objects. |
![]() | HierarchyIdException | The exception that is thrown for invalid SqlHierarchyId values. |
![]() | SpaceFillingCurve | This API supports the product infrastructure and is not intended to be used directly from your code. Provides methods for calculating a space-filling curve. |
![]() | SpatialGridCoverage | This API supports the product infrastructure and is not intended to be used directly from your code. Provides methods for obtaining a spatial grid coverage. |
![]() | SpatialTessellationFunction | This API supports the product infrastructure and is not intended to be used directly from your code. Provides static methods for creating a spatial tessellation. |
![]() | SqlGeography | The SqlGeography type represents data in a geodetic (round earth) coordinate system. |
![]() | SqlGeographyBuilder | Constructs instances of SqlGeography objects by using IGeographySink interface. |
![]() | SqlGeometry | The SqlGeometry type represents data in a Euclidean (flat) coordinate system. |
![]() | SqlGeometryBuilder | Constructs instances of SqlGeometry objects by using IGeometrySink interface. |
| Structure | Description | |
|---|---|---|
![]() | SqlHierarchyId | The SqlHierarchyId type represents a position in a hierarchical structure, specifying depth and breadth. |
| Interface | Description | |
|---|---|---|
![]() | IGeographySink | Obsolete. Interface used by SqlGeographyBuilder to construct a SqlGeography object. This API is obsolete. IGeographySink110 should be used instead. |
![]() | IGeographySink110 | Defines the interface used by SqlGeographyBuilder to construct a SqlGeography object. |
![]() | IGeometrySink | Obsolete. Defines the interface that the SqlGeometryBuilder class uses to construct a SqlGeometryBuilderobject. This API is obsolete. IGeometrySink110 should be used instead. |
![]() | IGeometrySink110 | Defines the interface used by SqlGeometryBuilder to construct a SqlGeometry object. |
![]() | ISqlSpatialGridIndexable | This API supports the product infrastructure and is not intended to be used directly from your code. Defines the interface that is implemented by SqlGeography and SqlGeometry type objects to support spatial indexing. |
| Enumeration | Description | |
|---|---|---|
![]() | OpenGisGeographyType | Lists supported and extended Open GIS geography types. |
![]() | OpenGisGeometryType | Lists Open GIS geometry types. |



