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;
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.
Exception Type | Condition |
---|---|
ArgumentException | comparand is not a ProtocolVersion instance. |
ProtocolVersion Class | ProtocolVersion Members | System.Net Namespace | Equals