共用方式為


Inequality 運算子

Determines whether two objects are unequal by performing an inequality operation on two BackupDeviceItem objects.

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.SmoExtended (在 Microsoft.SqlServer.SmoExtended.dll 中)

語法

'宣告
Public Shared Operator <> ( _
    r1 As BackupDeviceItem, _
    r2 As BackupDeviceItem _
) As Boolean
'用途
Dim r1 As BackupDeviceItem
Dim r2 As BackupDeviceItem
Dim returnValue As Boolean

returnValue = (r1 <> r2)
public static bool operator !=(
    BackupDeviceItem r1,
    BackupDeviceItem r2
)
public:
static bool operator !=(
    BackupDeviceItem^ r1, 
    BackupDeviceItem^ r2
)
static let inline (<>)
        r1:BackupDeviceItem * 
        r2:BackupDeviceItem  : bool
JScript 支援多載運算子的使用,但不支援新運算子的宣告。

參數

傳回值

型別:System. . :: . .Boolean
A Boolean value that specifies the outcome of the inequality operation.
If True, the two objects are unequal. Otherwise, False.