Url.CompareTo

Url.CompareTo method

Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.

public virtual int CompareTo(Url pn)
ParameterTypeDescription
objUrlAn object to compare with this instance, or null.

Return Value

This method returns: a value less than 0 if this is less than value 0 if this is equal to value a value greater than 0 if this is greater than value

See Also