Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
obj
Type: System.ObjectAn object representing the object that will be compared to the TargetSchemaVersionAttribute object.
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
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