Udostępnij za pośrednictwem


Metoda SqlGeometry.STCrosses

Określa, czy wywołujący SqlGeometry wystąpienie przecięcie określonego SqlGeometry instancji.

Przestrzeń nazw:  Microsoft.SqlServer.Types
Zestaw:  Microsoft.SqlServer.Types (w Microsoft.SqlServer.Types.dll)

Składnia

'Deklaracja
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := False)> _
Public Function STCrosses ( _
    other As SqlGeometry _
) As SqlBoolean
'Użycie
Dim instance As SqlGeometry
Dim other As SqlGeometry
Dim returnValue As SqlBoolean

returnValue = instance.STCrosses(other)
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
public SqlBoolean STCrosses(
    SqlGeometry other
)
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
public:
SqlBoolean STCrosses(
    SqlGeometry^ other
)
[<SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)>]
member STCrosses : 
        other:SqlGeometry -> SqlBoolean 
public function STCrosses(
    other : SqlGeometry
) : SqlBoolean

Parametry

Wartość zwracana

Typ: System.Data.SqlTypes.SqlBoolean
Zwraca true Jeśli SqlGeometry przecina wystąpienie innego wystąpienie geometrii.Zwraca false Jeśli nie.

Uwagi

Dwa SqlGeometry wystąpień granic, jeśli są spełnione oba następujące warunki:

  • Przecięcia dwóch SqlGeometry wystąpień wyniki w SqlGeometry których wymiary są mniejsze niż maksymalny wymiar źródło SqlGeometry wystąpień.

  • Zestaw przecięcia jest wnętrza zarówno źródło SqlGeometry wystąpień.

Metoda ta zawsze zwraca wartość null, jeśli odwołanie przestrzennej identyfikatory (SRIDs) SqlGeometry wystąpienia nie dopasowania.