APIMajorVersion
Returns the major version of the API as an integer. The API major version can be different from the product's major version if the API is connected to another server.
COM and .NET
Signature: int APIMajorVersion()
Java
Signature: public int getAPIMajorVersion()