Share via


TargetSchemaVersionAttribute.CompareTo method

Compares the TargetSchemaVersionAttribute object to a specified object.

Namespace:  Microsoft.SharePoint.Upgrade
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
<SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel := True)> _
Public Function CompareTo ( _
    obj As Object _
) As Integer
'Usage
Dim instance As TargetSchemaVersionAttribute
Dim obj As Object
Dim returnValue As Integer

returnValue = instance.CompareTo(obj)
[SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel = true)]
public int CompareTo(
    Object obj
)

Parameters

Return value

Type: System.Int32
The following table shows possible return values.

Return value

Description

Less than 0

TargetSchemaVersionAttribute object is less than the specified object.

0

TargetSchemaVersionAttribute object is equal to the specified object.

Greater than 0

TargetSchemaVersionAttribute object is greater than the specified object.

Implements

IComparable.CompareTo(Object)

Remarks

The ordering is the same as the ordering that is used for System.Version. If the object is a TargetSchemaVersionAttribute object, the wrapped Version object is compared. If the object is not a TargetSchemaVersionAttribute object, the object is compared with the wrapped version of the TargetSchemaVersionAttribute object.

See also

Reference

TargetSchemaVersionAttribute class

TargetSchemaVersionAttribute members

Microsoft.SharePoint.Upgrade namespace