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!

ProtocolVersion.CompareTo

Compares two ProtocolVersion instances for equality.

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

Parameters

comparand
The ProtocolVersion instance to compare with the current instance.

Return Value

The result of the comparison. Returns-1 if the current instance is less than comparand, 0 if the two instances are equal, and 1 if the current instance is more than comparand.

Exceptions

Exception Type Condition
ArgumentException comparand is not a ProtocolVersion instance.

See Also

ProtocolVersion Class | ProtocolVersion Members | System.Net Namespace | Equals