DateTime::CompareTo Method (Object)
Silverlight
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Parameters
- value
- Type: System::Object
The object to compare to this instance, or nullptr.
Return Value
Type: System::Int32A signed integer that indicates the relationship between this instance and the value parameter, as shown in the following table.
Value | Description |
|---|---|
Less than zero | This instance is earlier than value. |
Zero | This instance is the same as value. |
Greater than zero | This instance is later than value, or value is nullptr. |
Implements
IComparable::CompareTo(Object)| Exception | Condition |
|---|---|
| ArgumentException | value is not a DateTime. |
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.
Community Additions
ADD
Show: