DbGeography.GeographyCollectionFromText(String, Int32) Metod

Definition

Skapar ett nytt DbGeography samlingsvärde baserat på det angivna välkända textvärdet och koordinatsystemidentifieraren (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

Parametrar

geographyCollectionWellKnownText
String

En sträng som innehåller en välkänd textrepresentation av geografivärdet.

coordinateSystemId
Int32

Identifieraren för koordinatsystemet som det nya DbGeography-värdet ska använda.

Returer

Ett nytt DbGeography-värde som definieras av det välkända textvärdet med den angivna koordinatsystemidentifieraren.

Undantag

geographyCollectionWellKnownText

coordinateSystemId

Gäller för