DbGeography.PointFromBinary-Methode
[Diese Seite bezieht sich auf Entity Framework Version 6. Die neueste Version ist als 'Entity Framework' NuGet-Paket verfügbar. Weitere Informationen zu Entity Framework finden Sie unter msdn.com/data/ef.]
Erstellt einen neuen DbGeography-Punktwert auf Grundlage des angegebenen bekannten Binärwerts und der Koordinatensystem-ID (SRID).
Namespace: System.Data.Entity.Spatial
Assembly: EntityFramework (in EntityFramework.dll)
Syntax
'Declaration
Public Shared Function PointFromBinary ( _
pointWellKnownBinary As Byte(), _
coordinateSystemId As Integer _
) As DbGeography
'Usage
Dim pointWellKnownBinary As Byte()
Dim coordinateSystemId As Integer
Dim returnValue As DbGeography
returnValue = DbGeography.PointFromBinary(pointWellKnownBinary, _
coordinateSystemId)
public static DbGeography PointFromBinary(
byte[] pointWellKnownBinary,
int coordinateSystemId
)
public:
static DbGeography^ PointFromBinary(
array<unsigned char>^ pointWellKnownBinary,
int coordinateSystemId
)
static member PointFromBinary :
pointWellKnownBinary:byte[] *
coordinateSystemId:int -> DbGeography
public static function PointFromBinary(
pointWellKnownBinary : byte[],
coordinateSystemId : int
) : DbGeography
Parameter
- pointWellKnownBinary
Typ: System.Byte[]
Ein Bytearray, das eine bekannte binäre Darstellung des Geografiewerts enthält.
- coordinateSystemId
Typ: System.Int32
Der Bezeichner des Koordinatensystems, das der neue DbGeography-Wert verwenden soll.
Rückgabewert
Typ: System.Data.Entity.Spatial.DbGeography
Ein neuer DbGeography-Wert, wie durch den bekannten binären Wert mit der angegebenen Koordinatensystem-ID definiert.