xInfo::releaseVersion Method

Retrieves the version number of the current Microsoft Dynamics AX executable; for example: 3.0, or 4.0.

Syntax

client server public static str releaseVersion()

Run On

ClientOrServer

Return Value

Type: str
A string containing the Microsoft Dynamics AX version number.

Remarks

Possible version numbers include 3.0 and 4.0.

Examples

The following example uses this return the version number as part of a string that contains Microsoft Dynamics AX version information.

static client str axaptaReleaseID() 
{ 
    #define.versionPrefix('v') 
    #define.versionNumber('#') 
    #define.versionPartition('/') 
 
    return    #versionprefix+xInfo::releaseVersion()+ 
              #versionNumber+xInfo::buildNo()+ 
              #versionPartition+ApplicationVersion::buildNo(); 
}

See Also

xInfo Class

xInfo::buildNo Method