SqlSpatialServices.CreateWellKnownValue Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
CreateWellKnownValue(DbGeometry) |
Creates an instance of DbGeometryWellKnownValue that represents the specified DbGeometry value using one or both of the standard well-known spatial formats. |
CreateWellKnownValue(DbGeography) |
Creates an instance of DbGeographyWellKnownValue that represents the specified DbGeography value using one or both of the standard well-known spatial formats. |
CreateWellKnownValue(DbGeometry)
Creates an instance of DbGeometryWellKnownValue that represents the specified DbGeometry value using one or both of the standard well-known spatial formats.
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2208:InstantiateArgumentExceptionsCorrectly")]
public override System.Data.Entity.Spatial.DbGeometryWellKnownValue CreateWellKnownValue (System.Data.Entity.Spatial.DbGeometry geometryValue);
override this.CreateWellKnownValue : System.Data.Entity.Spatial.DbGeometry -> System.Data.Entity.Spatial.DbGeometryWellKnownValue
Public Overrides Function CreateWellKnownValue (geometryValue As DbGeometry) As DbGeometryWellKnownValue
Parameters
- geometryValue
- DbGeometry
The geometry value.
Returns
The well-known representation of geometryValue, as a new DbGeometryWellKnownValue .
- Attributes
Applies to
CreateWellKnownValue(DbGeography)
Creates an instance of DbGeographyWellKnownValue that represents the specified DbGeography value using one or both of the standard well-known spatial formats.
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2208:InstantiateArgumentExceptionsCorrectly")]
public override System.Data.Entity.Spatial.DbGeographyWellKnownValue CreateWellKnownValue (System.Data.Entity.Spatial.DbGeography geographyValue);
override this.CreateWellKnownValue : System.Data.Entity.Spatial.DbGeography -> System.Data.Entity.Spatial.DbGeographyWellKnownValue
Public Overrides Function CreateWellKnownValue (geographyValue As DbGeography) As DbGeographyWellKnownValue
Parameters
- geographyValue
- DbGeography
The geography value.
Returns
The well-known representation of geographyValue, as a new DbGeographyWellKnownValue .
- Attributes
Applies to
Entity Framework