IntPtr.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(IntPtr) |
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. |
CompareTo(Object) |
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. |
CompareTo(IntPtr)
- Source:
- IntPtr.cs
- Source:
- IntPtr.cs
- Source:
- IntPtr.cs
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(IntPtr value);
public int CompareTo (IntPtr value);
abstract member CompareTo : nativeint -> int
override this.CompareTo : nativeint -> int
Public Function CompareTo (value As IntPtr) As Integer
Parameters
- value
-
IntPtr
nativeint
A signed native integer to compare.
Returns
A value that indicates the relative order of the objects being compared. The return value has these meanings:
Value | Meaning |
---|---|
Less than zero | This instance precedes value in the sort order.
|
Zero | This instance occurs in the same position in the sort order as value .
|
Greater than zero | This instance follows value in the sort order.
|
Implements
Applies to
CompareTo(Object)
- Source:
- IntPtr.cs
- Source:
- IntPtr.cs
- Source:
- IntPtr.cs
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(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
An object to compare, or null
.
Returns
A value that indicates the relative order of the objects being compared. The return value has these meanings:
Value | Meaning |
---|---|
Less than zero | This instance precedes value in the sort order.
|
Zero | This instance occurs in the same position in the sort order as value .
|
Greater than zero | This instance follows value in the sort order.
|
Implements
Applies to
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈