Url.CompareTo

Url.CompareTo method

Determines whether the specified Url, is equal to this instance.

public bool CompareTo(Url url, bool excludeFragments)
ParameterTypeDescription
urlUrlThe Url to compare with this instance.
excludeFragmentsBooleanFlag which indicates whether or not fragment segment is excluded from comparison. true if excluded, false otherwise. Default value is false.

Return Value

true if the specified Url is equal to this instance; otherwise, false.

See Also