DbGeography.PolygonFromText-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-Polygonwert auf Grundlage des angegebenen bekannten Textwerts und der Koordinatensystem-ID (SRID).
Namespace: System.Data.Entity.Spatial
Assembly: EntityFramework (in EntityFramework.dll)
Syntax
'Declaration
Public Shared Function PolygonFromText ( _
polygonWellKnownText As String, _
coordinateSystemId As Integer _
) As DbGeography
'Usage
Dim polygonWellKnownText As String
Dim coordinateSystemId As Integer
Dim returnValue As DbGeography
returnValue = DbGeography.PolygonFromText(polygonWellKnownText, _
coordinateSystemId)
public static DbGeography PolygonFromText(
string polygonWellKnownText,
int coordinateSystemId
)
public:
static DbGeography^ PolygonFromText(
String^ polygonWellKnownText,
int coordinateSystemId
)
static member PolygonFromText :
polygonWellKnownText:string *
coordinateSystemId:int -> DbGeography
public static function PolygonFromText(
polygonWellKnownText : String,
coordinateSystemId : int
) : DbGeography
Parameter
- polygonWellKnownText
Typ: System.String
Eine Zeichenfolge, die die bekannte Textdarstellung 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 Textwert mit der angegebenen Koordinatensystem-ID definiert.