Export (0) Print
Expand All

Guid::IComparable::CompareTo Method

.NET Framework 4.5

Compares this instance to a specified object and returns an indication of their relative values.

Namespace:  System
Assembly:  mscorlib (in mscorlib.dll)

private:
virtual int CompareTo(
	Object^ value
) sealed = IComparable::CompareTo

Parameters

value
Type: System::Object

An object to compare, or nullptr.

Return Value

Type: System::Int32
A signed number indicating the relative values of this instance and value.

Return value

Description

A negative integer

This instance is less than value.

Zero

This instance is equal to value.

A positive integer

This instance is greater than value, or value is nullptr.

Implements

IComparable::CompareTo(Object)

ExceptionCondition
ArgumentException

value is not a Guid.

This member is an explicit interface implementation. It can be used only when the Guid instance is cast to an IComparable interface.

Portable Class Library

Supported in: Portable Class Library

.NET for Windows Store apps

Supported in: Windows 8
Show:
© 2014 Microsoft