Metodo DbSpatialServices.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.Spatial
Assembly: EntityFramework (in EntityFramework.dll)
Sintassi
'Dichiarazione
Public MustOverride Function CreateWellKnownValue ( _
geographyValue As DbGeography _
) As DbGeographyWellKnownValue
'Utilizzo
Dim instance As DbSpatialServices
Dim geographyValue As DbGeography
Dim returnValue As DbGeographyWellKnownValue
returnValue = instance.CreateWellKnownValue(geographyValue)
public abstract DbGeographyWellKnownValue CreateWellKnownValue(
DbGeography geographyValue
)
public:
virtual DbGeographyWellKnownValue^ CreateWellKnownValue(
DbGeography^ geographyValue
) abstract
abstract CreateWellKnownValue :
geographyValue:DbGeography -> DbGeographyWellKnownValue
public abstract 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.
Eccezioni
Eccezione | Condizione |
---|---|
ArgumentNullException | geographyValue è null. |
ArgumentException | geographyValue non è compatibile con l'implementazione spaziale dei servizi. |