Επεξεργασία

Κοινή χρήση μέσω


TimeOnly.CompareTo Method

Definition

Overloads

CompareTo(Object)

Compares the value of this instance to a specified object that contains a specified TimeOnly value, and returns an integer that indicates whether this instance is earlier than, the same as, or later than the specified TimeOnly value.

CompareTo(TimeOnly)

Compares the value of this instance to a specified TimeOnly value and indicates whether this instance is earlier than, the same as, or later than the specified TimeOnly value.

CompareTo(Object)

Source:
TimeOnly.cs
Source:
TimeOnly.cs
Source:
TimeOnly.cs

Compares the value of this instance to a specified object that contains a specified TimeOnly value, and returns an integer that indicates whether this instance is earlier than, the same as, or later than the specified TimeOnly value.

public:
 virtual int CompareTo(System::Object ^ value);
public int CompareTo (object? value);
abstract member CompareTo : obj -> int
override this.CompareTo : obj -> int
Public Function CompareTo (value As Object) As Integer

Parameters

value
Object

A boxed object to compare, or null.

Returns

A signed number indicating the relative values of this instance and the value parameter. Less than zero if this instance is earlier than value. Zero if this instance is the same as value. Greater than zero if this instance is later than value.

Implements

Applies to

CompareTo(TimeOnly)

Source:
TimeOnly.cs
Source:
TimeOnly.cs
Source:
TimeOnly.cs

Compares the value of this instance to a specified TimeOnly value and indicates whether this instance is earlier than, the same as, or later than the specified TimeOnly value.

public:
 virtual int CompareTo(TimeOnly value);
public int CompareTo (TimeOnly value);
abstract member CompareTo : TimeOnly -> int
override this.CompareTo : TimeOnly -> int
Public Function CompareTo (value As TimeOnly) As Integer

Parameters

value
TimeOnly

The object to compare to the current instance.

Returns

A signed number indicating the relative values of this instance and the value parameter.

  • Less than zero if this instance is earlier than value.

  • Zero if this instance is the same as value.

  • Greater than zero if this instance is later than value.

Implements

Applies to