## CookieComparer::Compare method


Compares the specified objects.

```cpp
int System::Net::CookieComparer::Compare(args_type left, args_type right) const override
```


| Parameter | Type | Description |
| --- | --- | --- |
| left | args_type | First object to compare. |
| right | args_type | Second object to compare. |

### ReturnValue

Negative value if **left** is less than **right**; zero if they are equal; positive value if **left** is greater than **right**.

## See Also

* Typedef [args_type](../../../system.collections.generic/icomparer/args_type/)
* Class [CookieComparer](../)
* Namespace [System::Net](../../)
* Library [Aspose.PUB for C++](../../../)
