OrderToken.ResolveConflict Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

A method that is called by the CompareTo(OrderToken) default implementation when two OrderToken instances appear to be equivalent.

Namespace:  System.Activities.Design
Assembly:  System.Activities.Design.Base (in System.Activities.Design.Base.dll)

Syntax

'Declaration
Protected Overridable Function ResolveConflict ( _
    left As OrderToken, _
    right As OrderToken _
) As Integer
'Usage
Dim left As OrderToken
Dim right As OrderToken
Dim returnValue As Integer

returnValue = Me.ResolveConflict(left, _
    right)
protected virtual int ResolveConflict(
    OrderToken left,
    OrderToken right
)
protected:
virtual int ResolveConflict(
    OrderToken^ left, 
    OrderToken^ right
)
protected function ResolveConflict(
    left : OrderToken, 
    right : OrderToken
) : int
abstract ResolveConflict : 
        left:OrderToken * 
        right:OrderToken -> int 
override ResolveConflict : 
        left:OrderToken * 
        right:OrderToken -> int 

Parameters

Return Value

Type: System.Int32
Returns Int32. This value is 0 if the two are equal, -1 if left comes before right, and 1 otherwise.

Remarks

This method uses the instantiation order of the two tokens as a tie-breaker. You can override this method to implement custom algorithms. Note that if this method returns 0 (indicating that the two tokens are equivalent), and if these tokens belong to a list that is sorted multiple times, the relative order in which they appear in the list will not be guaranteed.

.NET Framework Security

Platforms

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Version Information

.NET Framework

Supported in: 4

See Also

Reference

OrderToken Class

OrderToken Members

System.Activities.Design Namespace