Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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)
int IComparable.CompareTo(
	Object value
)

Parameters

value
Type: System.Object

An object to compare, or null.

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 null.

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
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.