Skip to main content
.NET Framework 4.6.2+

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

ContextIdentifier.CompareTo(Object) Method

Compares the current ContextIdentifier with another ContextIdentifier.

Namespace: DevExpress.Persistent.Validation

Assembly: DevExpress.Persistent.Base.v24.2.dll

#Declaration

public int CompareTo(
    object obj
)

#Parameters

Name Type Description
obj Object

An object which can be cast to the ContextIdentifier type, to compare to the current context identifier.

#Returns

Type Description
Int32

An integer value indicating whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.

#Remarks

This method returns a negative value if the current context identifier precedes the obj context identifier in the sort order. If the current context identifier follows the obj context identifier in the sort order, the method returns a positive value. If the context identifiers being compared occur in the same position in the sort order, zero is returned.

See Also