NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Byte.CompareTo

Compares this instance to the specified object.

[Visual Basic]
Overridable Public Function CompareTo( _
   ByVal value As Object _
) As Integer
[C#]
public virtual int CompareTo(
   object value
);
[C++]
public: virtual int CompareTo(
   Object* value
);
[JScript]
public function CompareTo(
   value : Object
) : int;

Parameters

value
An object to compare with this instance.

Return Value

Value Description
A negative integer If this instance is less than the object.
Zero If this instance and the object are equal.
A positive integer If this instance is greater than the object.
A positive integer If the object is null. This is a special case

Exceptions

Exception Type Condition
ArgumentException if the object is a non-null reference that is not of type Byte.

Remarks

The CompareTo method compares two objects and returns an integer that indicates their relationship. Both objects must be either a Byte type or a null reference.

In comparing two Byte values, the canonical ordering is used. As a special case, regardless of its value, an instance is considered to be greater than a null reference.

The value parameter must be either a Byte type or a null reference.

See Also

Byte Structure | Byte Members | System Namespace