Metodo SqlSpatialServices.CreateWellKnownValue (DbGeography)
[Questa pagina è specifica della versione 6 di Entity Framework. La versione più recente è disponibile come pacchetto NuGet per "Entity Framework". Per ulteriori informazioni su Entity Framework, vedere la pagina msdn.com/data/ef.]
Crea un'istanza di DbGeographyWellKnownValue che rappresenta il valore DbGeography specificato utilizzando uno o entrambi i formati spaziali noti standard.
Spazio dei nomi: System.Data.Entity.SqlServer
Assembly: EntityFramework.SqlServer (in EntityFramework.SqlServer.dll)
Sintassi
'Dichiarazione
<SuppressMessageAttribute("Microsoft.Usage", "CA2208:InstantiateArgumentExceptionsCorrectly")> _
Public Overrides Function CreateWellKnownValue ( _
geographyValue As DbGeography _
) As DbGeographyWellKnownValue
'Utilizzo
Dim instance As SqlSpatialServices
Dim geographyValue As DbGeography
Dim returnValue As DbGeographyWellKnownValue
returnValue = instance.CreateWellKnownValue(geographyValue)
[SuppressMessageAttribute("Microsoft.Usage", "CA2208:InstantiateArgumentExceptionsCorrectly")]
public override DbGeographyWellKnownValue CreateWellKnownValue(
DbGeography geographyValue
)
[SuppressMessageAttribute(L"Microsoft.Usage", L"CA2208:InstantiateArgumentExceptionsCorrectly")]
public:
virtual DbGeographyWellKnownValue^ CreateWellKnownValue(
DbGeography^ geographyValue
) override
[<SuppressMessageAttribute("Microsoft.Usage", "CA2208:InstantiateArgumentExceptionsCorrectly")>]
abstract CreateWellKnownValue :
geographyValue:DbGeography -> DbGeographyWellKnownValue
[<SuppressMessageAttribute("Microsoft.Usage", "CA2208:InstantiateArgumentExceptionsCorrectly")>]
override CreateWellKnownValue :
geographyValue:DbGeography -> DbGeographyWellKnownValue
public override function CreateWellKnownValue(
geographyValue : DbGeography
) : DbGeographyWellKnownValue
Parametri
- geographyValue
Tipo: System.Data.Entity.Spatial.DbGeography
Valore geografico.
Valore restituito
Tipo: System.Data.Entity.Spatial.DbGeographyWellKnownValue
Rappresentazione nota di geographyValue come un nuovo oggetto DbGeographyWellKnownValue.