SyncIdFormat::CompareTo Method

Compares the current object with another SyncIdFormat object.

Namespace:  Microsoft.Synchronization
Assembly:  Microsoft.Synchronization (in Microsoft.Synchronization.dll)

public:
virtual int CompareTo(
	Object^ obj
) sealed

Parameters

obj
Type: System::Object
A SyncIdFormat object to compare with this object.

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

IComparable::CompareTo(Object)

ExceptionCondition
ArgumentException

format could not be cast to SyncIdFormat.

Show: