OrderToken.CompareTo Method
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Compares this order token with the specified order token. Comparisons for OrderTokens that do not belong to the same chain of OrderTokens will be resolved non-deterministically.
Namespace: System.Activities.Design
Assembly: System.Activities.Design.Base (in System.Activities.Design.Base.dll)
Syntax
'Declaration
Public Overridable Function CompareTo ( _
other As OrderToken _
) As Integer
'Usage
Dim instance As OrderToken
Dim other As OrderToken
Dim returnValue As Integer
returnValue = instance.CompareTo(other)
public virtual int CompareTo(
OrderToken other
)
public:
virtual int CompareTo(
OrderToken^ other
)
public function CompareTo(
other : OrderToken
) : int
abstract CompareTo :
other:OrderToken -> int
override CompareTo :
other:OrderToken -> int
Parameters
- other
Type: System.Activities.Design.OrderToken
The token to compare this token to.
Return Value
Type: System.Int32
Returns Int32. This value will be 0 if the tokens have an equal order priority, -1 if this order comes before the specified order, and 1 otherwise.
Implements
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | otheris nulla null reference (Nothing in Visual Basic). |
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
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