次の方法で共有


DbSpatialServices.Relate メソッド

[このページは、Entity Framework 6 に関するページです。最新バージョンは、'Entity Framework' NuGet パッケージとして入手できます。Entity Framework の詳細については、msdn.com/data/ef を参照してください。]

2 つの指定した DbGeometry 値が、指定した DE-9IM (Dimensionally Extended Nine-Intersection Model) 交差パターンに従って空間的に関連しているかどうかを判断します。

名前空間:  System.Data.Entity.Spatial
アセンブリ:  EntityFramework (EntityFramework.dll 内)

構文

'宣言
Public MustOverride Function Relate ( _
    geometryValue As DbGeometry, _
    otherGeometry As DbGeometry, _
    matrix As String _
) As Boolean
'使用
Dim instance As DbSpatialServices 
Dim geometryValue As DbGeometry 
Dim otherGeometry As DbGeometry 
Dim matrix As String 
Dim returnValue As Boolean 

returnValue = instance.Relate(geometryValue, _
    otherGeometry, matrix)
public abstract bool Relate(
    DbGeometry geometryValue,
    DbGeometry otherGeometry,
    string matrix
)
public:
virtual bool Relate(
    DbGeometry^ geometryValue, 
    DbGeometry^ otherGeometry, 
    String^ matrix
) abstract
abstract Relate : 
        geometryValue:DbGeometry * 
        otherGeometry:DbGeometry * 
        matrix:string -> bool
public abstract function Relate(
    geometryValue : DbGeometry, 
    otherGeometry : DbGeometry, 
    matrix : String
) : boolean

パラメーター

  • matrix
    型 : System.String
    関係を定義する (DE-9IM) 交差パターンのテキスト表現を含む文字列。

戻り値

型 : System.Boolean
この geometryValue 値が指定された交差パターン matrix に従って otherGeometry と関連する場合は true。それ以外の場合は false。

例外

例外 状態
ArgumentNullException

geometryValue、otherGeometry、または matrix が null です。

ArgumentException

geometryValue または otherGeometry は、この空間サービスの実装と互換性がありません。

参照

参照

DbSpatialServices クラス

System.Data.Entity.Spatial 名前空間