The EAEditionTypes enumeration identifies the current level of licensed functionality available.
EAEditionTypes theEdition = theRepository.GetEAEdition();
if (theEdition == EAEditionTypes.piProfessional)
else if (theEdition == EAEditionTypes.piCorporate)
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.