Bewerken

Delen via


NSDateInterval.Compare(NSDateInterval) Method

Definition

Calculates the ordering of this and the provided dateInterval.

[Foundation.Export("compare:")]
public virtual Foundation.NSComparisonResult Compare (Foundation.NSDateInterval dateInterval);
abstract member Compare : Foundation.NSDateInterval -> Foundation.NSComparisonResult
override this.Compare : Foundation.NSDateInterval -> Foundation.NSComparisonResult

Parameters

dateInterval
NSDateInterval

The NSDateInterval to compare to this.

Returns

Attributes

Remarks

This Compare(NSDateInterval) method returns P:Foundation.NSComparisonResult.Equal if the this and dateInterval start and stop at the same time. If dateInterval begins after this or starts at the same time but is of a shorter duration, the method returns P:Foundation.NSComparisonResult.OrderedAscending. If dateInterval begins before this or starts at the same time but is of a longer duration, the method returns P:Foundation.NSComparisonResult.OrderedDescending.

Applies to