## Version::CompareTo method


Compara las versiones representadas por el objeto actual y el objeto especificado.

```cpp
int System::Version::CompareTo(const Version &ver) const
```


| Parámetro | Tipo | Descripción |
| --- | --- | --- |
| ver | const Version\& | Un objeto [Version](../) para comparar con el objeto actual |

### ReturnValue

-1 if the version number represented by the current object is less than that represented by **ver**; 0 if the version numbers are equal; 1 if the version number represented by the current object is greater than the value represented by **ver**

## Ver también

* Class [Version](../)
* Class [Version](../)
* Namespace [System](../../)
* Library [Aspose.PDF for C++](../../../)
