執行不相等比較。
命名空間: System.Spatial
組件: System.Spatial (在 System.Spatial.dll 中)
語法
'宣告
Public Shared Operator <> ( _
left As GeographyPosition, _
right As GeographyPosition _
) As Boolean
'用途
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 支援使用多載運算子,但不支援新的宣告。
參數
- left
型別:System.Spatial.GeographyPosition
第一個位置。
- right
型別:System.Spatial.GeographyPosition
另一個位置。
傳回值
型別:System.Boolean
如果左邊不等於右邊,則為 true,否則為 false。