Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

BackupDeviceItem.CompareTo Method (Object)

 

Applies To: SQL Server 2016 Preview

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

The comparison of object names is case-insensitive.

Return to top
Show:
© 2015 Microsoft