## CookieComparer::Compare method


比较指定的对象。

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


| Parameter | Type | 描述 |
| --- | --- | --- |
| 左 | args_type | 要比较的第一个对象。 |
| 右 | args_type | 要比较的第二个对象。 |

### ReturnValue

如果 **left** 小于 **right**，返回负值；如果它们相等，返回零；如果 **left** 大于 **right**，返回正值。

## 另见

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