Share via


DbGeography.GeographyCollectionFromText(String, Int32) Methode

Definition

Erstellt einen neuen DbGeography-Sammlungswert auf Grundlage des angegebenen bekannten Textwerts und der Koordinatensystem-ID (SRID).

public:
 static System::Data::Spatial::DbGeography ^ GeographyCollectionFromText(System::String ^ geographyCollectionWellKnownText, int coordinateSystemId);
public static System.Data.Spatial.DbGeography GeographyCollectionFromText (string geographyCollectionWellKnownText, int coordinateSystemId);
static member GeographyCollectionFromText : string * int -> System.Data.Spatial.DbGeography
Public Shared Function GeographyCollectionFromText (geographyCollectionWellKnownText As String, coordinateSystemId As Integer) As DbGeography

Parameter

geographyCollectionWellKnownText
String

Eine Zeichenfolge, die die bekannte Textdarstellung des Geografiewerts enthält.

coordinateSystemId
Int32

Der Bezeichner des Koordinatensystems, das der neue DbGeography-Wert verwenden soll.

Gibt zurück

Ein neuer DbGeography-Wert, wie durch den bekannten Text-Wert mit der angegebenen Koordinatensystem-ID definiert.

Ausnahmen

geographyCollectionWellKnownText

coordinateSystemId

Gilt für: