Freigeben über


DbGeometry.PolygonFromBinary-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 DbGeometry-Polygonwert 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 PolygonFromBinary ( _
    polygonWellKnownBinary As Byte(), _
    coordinateSystemId As Integer _
) As DbGeometry
'Usage
Dim polygonWellKnownBinary As Byte()
Dim coordinateSystemId As Integer 
Dim returnValue As DbGeometry 

returnValue = DbGeometry.PolygonFromBinary(polygonWellKnownBinary, _
    coordinateSystemId)
public static DbGeometry PolygonFromBinary(
    byte[] polygonWellKnownBinary,
    int coordinateSystemId
)
public:
static DbGeometry^ PolygonFromBinary(
    array<unsigned char>^ polygonWellKnownBinary, 
    int coordinateSystemId
)
static member PolygonFromBinary : 
        polygonWellKnownBinary:byte[] * 
        coordinateSystemId:int -> DbGeometry
public static function PolygonFromBinary(
    polygonWellKnownBinary : byte[], 
    coordinateSystemId : int
) : DbGeometry

Parameter

  • polygonWellKnownBinary
    Typ: System.Byte[]
    Ein Bytearray, das eine bekannte binäre Darstellung des Geometriewerts enthält.
  • coordinateSystemId
    Typ: System.Int32
    Der Bezeichner des Koordinatensystems, das der neue DbGeometry-Wert verwenden soll.

Rückgabewert

Typ: System.Data.Entity.Spatial.DbGeometry
Ein neuer DbGeometry-Wert, wie durch den bekannten binären Wert mit der angegebenen Koordinatensystem-ID definiert.

Ausnahmen

Ausnahme Bedingung
ArgumentNullException

polygonWellKnownBinary hat den Wert null.

ArgumentException

coordinateSystemId ist ungültig.

Siehe auch

Verweis

DbGeometry Klasse

System.Data.Entity.Spatial-Namespace