Freigeben über


DbGeometry.Relate-Methode

[Diese Seite bezieht sich auf Entity Framework Version 6. Die neueste Version ist als 'Entity Framework' NuGet-Paket verfügbar. Weitere Informationen zu Entity Framework finden Sie unter msdn.com/data/ef.]

Bestimmt, ob dieser DbGeometry-Wert räumlich mit dem angegebenen DbGeometry-Argument gemäß dem angegebenen Dimensionally Extended Nine-Intersection Model-Schnittmengenmusters (DE-9IM-Musters) verknüpft ist.

Namespace:  System.Data.Entity.Spatial
Assembly:  EntityFramework (in EntityFramework.dll)

Syntax

'Declaration
Public Function Relate ( _
    other As DbGeometry, _
    matrix As String _
) As Boolean
'Usage
Dim instance As DbGeometry 
Dim other As DbGeometry 
Dim matrix As String 
Dim returnValue As Boolean 

returnValue = instance.Relate(other, matrix)
public bool Relate(
    DbGeometry other,
    string matrix
)
public:
bool Relate(
    DbGeometry^ other, 
    String^ matrix
)
member Relate : 
        other:DbGeometry * 
        matrix:string -> bool
public function Relate(
    other : DbGeometry, 
    matrix : String
) : boolean

Parameter

  • matrix
    Typ: System.String
    Eine Zeichenfolge, die die Textdarstellung des (DE-9IM) Schnittmengenmusters enthält, das die Verbindung definiert.

Rückgabewert

Typ: System.Boolean
true , wenn sich dieser Geometriewert nach der angegebenen Schnittmengenmustermatrix auf other bezieht; andernfalls false.

Ausnahmen

Ausnahme Bedingung
ArgumentNullException

other und matrix ist null.

Siehe auch

Verweis

DbGeometry Klasse

System.Data.Entity.Spatial-Namespace