Поделиться через


DbGeography.GeographyCollectionFromText - метод

[Эта страница относится к документации к Entity Framework 6. Последняя версия доступна в составе пакета Entity Framework NuGet. Дополнительные сведения об Entity Framework см. в разделе msdn.com/data/ef.]

Создает новое значение коллекции DbGeography, основанное на указанном известном текстовом значении и идентификаторе (SRID) системы координат.

Пространство имен:  System.Data.Entity.Spatial
Сборка:  EntityFramework (в EntityFramework.dll)

Синтаксис

'Декларация
Public Shared Function GeographyCollectionFromText ( _
    geographyCollectionWellKnownText As String, _
    coordinateSystemId As Integer _
) As DbGeography
'Применение
Dim geographyCollectionWellKnownText As String 
Dim coordinateSystemId As Integer 
Dim returnValue As DbGeography 

returnValue = DbGeography.GeographyCollectionFromText(geographyCollectionWellKnownText, _
    coordinateSystemId)
public static DbGeography GeographyCollectionFromText(
    string geographyCollectionWellKnownText,
    int coordinateSystemId
)
public:
static DbGeography^ GeographyCollectionFromText(
    String^ geographyCollectionWellKnownText, 
    int coordinateSystemId
)
static member GeographyCollectionFromText : 
        geographyCollectionWellKnownText:string * 
        coordinateSystemId:int -> DbGeography
public static function GeographyCollectionFromText(
    geographyCollectionWellKnownText : String, 
    coordinateSystemId : int
) : DbGeography

Параметры

  • geographyCollectionWellKnownText
    Тип: System.String
    Строка, содержащая известное текстовое представление значения geography.
  • coordinateSystemId
    Тип: System.Int32
    Идентификатор системы координат, которую должно использовать новое значение DbGeography.

Возвращаемое значение

Тип: System.Data.Entity.Spatial.DbGeography
Новое значение DbGeography, определенное известным текстовым значением с указанным идентификатором системы координат.

См. также

Справочник

DbGeography Класс

System.Data.Entity.Spatial - пространство имен