Export (0) Print
Expand All

BackupDeviceItem.CompareTo Method

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)

public int CompareTo(
	Object obj
)

Parameters

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

Return Value

Type: 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

IComparableCompareTo(Object)

The comparison of object names is case-insensitive.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft