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


DbSpatialServices.Intersection - метод (DbGeography, DbGeography)

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

Вычисляет пересечение двух значений DbGeography.

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

Синтаксис

'Декларация
Public MustOverride Function Intersection ( _
    geographyValue As DbGeography, _
    otherGeography As DbGeography _
) As DbGeography
'Применение
Dim instance As DbSpatialServices 
Dim geographyValue As DbGeography 
Dim otherGeography As DbGeography 
Dim returnValue As DbGeography 

returnValue = instance.Intersection(geographyValue, _
    otherGeography)
public abstract DbGeography Intersection(
    DbGeography geographyValue,
    DbGeography otherGeography
)
public:
virtual DbGeography^ Intersection(
    DbGeography^ geographyValue, 
    DbGeography^ otherGeography
) abstract
abstract Intersection : 
        geographyValue:DbGeography * 
        otherGeography:DbGeography -> DbGeography
public abstract function Intersection(
    geographyValue : DbGeography, 
    otherGeography : DbGeography
) : DbGeography

Параметры

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

Тип: System.Data.Entity.Spatial.DbGeography
Новое значение DbGeography, представляющее пересечение geographyValue и otherGeography.

Исключения

Исключение Условие
ArgumentNullException

Значение geographyValue или otherGeography равно null.

ArgumentException

Значение geographyValue или otherGeography несовместимо с этой реализацией пространственных служб.

См. также

Справочник

DbSpatialServices Класс

Intersection - перегрузка

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