BackupDeviceItem.CompareTo(Object) BackupDeviceItem.CompareTo(Object) BackupDeviceItem.CompareTo(Object) Method

Definition

Verifies whether the specified object shares the same name as the referenced BackupDeviceItem object.

public:
 virtual int CompareTo(System::Object ^ obj);
public int CompareTo (object obj);
Public Function CompareTo (obj As Object) As Integer
Parameters
obj
Object Object Object

A Object object value that specifies the object that is compared with the referenced BackupDeviceItem object.

Returns

An Int32 value that specifies the lexical relationship between the two strings.

Value
Description
Less than zero The referenced object name is less than the object name that is specified by the parameter.
Zero The referenced object name is equal to the object name that is specified by the parameter.
Greater than zero The referenced object name is greater than the object name that is specified by the parameter.

Examples

Backing Up and Restoring Databases and Transaction Logs

Remarks

The comparison of object names is case-insensitive.

-

Applies to