DbGeography.FromBinary-Methode (Byte[], Int32)
[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-Wert 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 FromBinary ( _
wellKnownBinary As Byte(), _
coordinateSystemId As Integer _
) As DbGeography
'Usage
Dim wellKnownBinary As Byte()
Dim coordinateSystemId As Integer
Dim returnValue As DbGeography
returnValue = DbGeography.FromBinary(wellKnownBinary, _
coordinateSystemId)
public static DbGeography FromBinary(
byte[] wellKnownBinary,
int coordinateSystemId
)
public:
static DbGeography^ FromBinary(
array<unsigned char>^ wellKnownBinary,
int coordinateSystemId
)
static member FromBinary :
wellKnownBinary:byte[] *
coordinateSystemId:int -> DbGeography
public static function FromBinary(
wellKnownBinary : byte[],
coordinateSystemId : int
) : DbGeography
Parameter
- wellKnownBinary
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.