BackupDeviceItem.Equality 運算子
Determines whether two objects are equal by performing an equality 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 支援多載運算子的使用,但不支援新運算子的宣告。
參數
- r1
型別:Microsoft.SqlServer.Management.Smo.BackupDeviceItem
A BackupDeviceItem object that is used in the equality operation.
- r2
型別:Microsoft.SqlServer.Management.Smo.BackupDeviceItem
A BackupDeviceItem object that is used in the equality operation.
傳回值
型別:System.Boolean
A Boolean value that specifies the outcome of the equality operation.If True, the two objects are equal. Otherwise, False.
範例
請參閱
參考
Microsoft.SqlServer.Management.Smo 命名空間