TimeOnly.CompareTo Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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
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
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기