Share via


GeographyPosition.Equality Operator

Performs equality comparison.

Namespace:  System.Spatial
Assembly:  System.Spatial (in System.Spatial.dll)

Syntax

'Declaration
Public Shared Operator = ( _
    left As GeographyPosition, _
    right As GeographyPosition _
) As Boolean
'Usage
Dim left As GeographyPosition 
Dim right As GeographyPosition 
Dim returnValue As Boolean 

returnValue = (left = right)
public static bool operator ==(
    GeographyPosition left,
    GeographyPosition right
)
public:
static bool operator ==(
    GeographyPosition^ left, 
    GeographyPosition^ right
)
static let inline(=)
        left:GeographyPosition * 
        right:GeographyPosition  : bool
JScript supports the use of overloaded operators, but not the declaration of new ones.

Parameters

Return Value

Type: System.Boolean
true if each pair of coordinates is equal; otherwise, false.

See Also

Reference

GeographyPosition Class

System.Spatial Namespace