SyncIdFormatGroup.CompareTo Method
Compares the current instance with another SyncIdFormatGroup object.
Namespace: Microsoft.Synchronization
Assembly: Microsoft.Synchronization (in Microsoft.Synchronization.dll)
Syntax
'Declaration
Public Function CompareTo ( _
obj As Object _
) As Integer
'Usage
Dim instance As SyncIdFormatGroup
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 SyncIdFormatGroup object to compare with this instance.
Return Value
Type: System.Int32
A 32-bit signed integer that indicates the relative order of the objects that are being compared. The return value has the following meanings.
Value |
Meaning |
---|---|
Less than 0 |
This instance is less than obj. |
0 |
This instance is equal to obj. |
Greater than 0 |
This instance is greater than obj. |
Implements
Exceptions
Exception | Condition |
---|---|
ArgumentException | formats could not be converted to a SyncIdFormatGroup. |