Share via


SPWorkflow.CompareTo method

Compares this instance to a specified SPWorkflow object.

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

Syntax

'Declaration
Public Function CompareTo ( _
    wf As SPWorkflow _
) As Integer
'Usage
Dim instance As SPWorkflow
Dim wf As SPWorkflow
Dim returnValue As Integer

returnValue = instance.CompareTo(wf)
public int CompareTo(
    SPWorkflow wf
)

Parameters

Return value

Type: System.Int32
A signed number that indicates the relative values of this instance ID and the wf ID.

Return value

Description

A negative integer

This instance ID is less than the wf ID.

zero

This instance ID is equal to the wf ID.

A positive integer

This instance ID is greater than the wf ID.

Implements

IComparable<T>.CompareTo(T)

Remarks

This method compares this workflow instance ID with the wf instance ID and returns an indication of their relative values.

See also

Reference

SPWorkflow class

SPWorkflow members

Microsoft.SharePoint.Workflow namespace

Other resources

Workflows in Windows SharePoint Services

Workflow Development for Windows SharePoint Services

Workflow Object Model in Windows SharePoint Services Overview