BackupDeviceItem.Equality Operator

Determines whether two objects are equal by performing an equality operation on two BackupDeviceItem objects.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.SmoExtended (in Microsoft.SqlServer.SmoExtended.dll)

Syntax

'Declaration
Public Shared Operator = ( _
    r1 As BackupDeviceItem, _
    r2 As BackupDeviceItem _
) As Boolean
'Usage
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 supports the use of overloaded operators, but not the declaration of new ones.

Parameters

Return Value

Type: System.Boolean
A Boolean value that specifies the outcome of the equality operation.If True, the two objects are equal. Otherwise, False.

Examples

Backing Up and Restoring Databases and Transaction Logs

See Also

Reference

BackupDeviceItem Class

Microsoft.SqlServer.Management.Smo Namespace

Other Resources

BACKUP (Transact-SQL)