The EAEditionTypes enumeration identifies the current level of licensed functionality available.
EAEditionTypes theEdition = theRepository.GetEAEdition();
if (theEdition == EAEditionTypes.piDesktop)
else if (theEdition == EAEditionTypes.piProfessional)
The enumeration defines these formal values:
There is no separate value for the trial edition; the Repository.GetEAEdition() function returns the appropriate EAEditionTypes value for whichever edition the user has selected to trial.