SPWorkflowAssociation.IComparer.Compare Method
Compares two objects and returns a value that indicates whether the first object is alphabetically less than, equal to, or greater than the second object.
Namespace: Microsoft.SharePoint.Workflow
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
Syntax
'Declaration
Private Function Compare ( _
o1 As Object, _
o2 As Object _
) As Integer Implements IComparer.Compare
'Usage
Dim instance As SPWorkflowAssociation
Dim o1 As Object
Dim o2 As Object
Dim returnValue As Integer
returnValue = CType(instance, IComparer).Compare(o1, _
o2)
intIComparer.Compare(
Object o1,
Object o2
)
Parameters
o1
Type: System.ObjectThe first object to compare.
o2
Type: System.ObjectThe second object to compare.
Return Value
Type: System.Int32
Value |
Condition |
---|---|
-1 |
o1 is less than o2. |
0 |
o1 is equal to o2. |
1 |
o1 is greater than o2. |
Implements
IComparer.Compare(Object, Object)
Remarks
This member is an explicit interface implementation. It can be used only when the SPWorkflowAssociation instance is cast to an IComparer interface.
This method casts o1 and o2 to SPWorkflowAssociation instances and returns the result of comparing the values of their InternalName properties.
The comparisons are case-sensitive.