Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Verifies whether the specified object shares the same name as the referenced BackupDeviceItem object.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.SmoExtended (in Microsoft.SqlServer.SmoExtended.dll)
Syntax
'Declaration
Public Function CompareTo ( _
obj As Object _
) As Integer
'Usage
Dim instance As BackupDeviceItem
Dim obj As Object
Dim returnValue As Integer
returnValue = instance.CompareTo(obj)
public int CompareTo(
Object obj
)
public:
virtual int CompareTo(
Object^ obj
) sealed
abstract CompareTo :
obj:Object -> int
override CompareTo :
obj:Object -> int
public final function CompareTo(
obj : Object
) : int
Parameters
- obj
Type: System.Object
A Object object value that specifies the object that is compared with the referenced BackupDeviceItem object.
Return Value
Type: System.Int32
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. |
Implements
Remarks
The comparison of object names is case-insensitive.
-
Examples
Backing Up and Restoring Databases and Transaction Logs
See Also
Reference
Microsoft.SqlServer.Management.Smo Namespace