ExchangeVersionΒΆ

This documentation provides details about the ExchangeVersion class within the pyews package.

Used to validate compatible Exchange Versions across multiple service endpoints

Examples:

To determine if a version number is a valid ExchangeVersion then would pass in the value when instantiating this object:

version = ExchangeVersion('15.20.5').exchangeVersion
print(version)
# output
Exchange2016

To verify an ExchangeVersion is supported, you can view the supported version by access the EXCHANGE_VERSIONS attribute

versions = ExchangeVersion('15.20.5').EXCHANGE_VERSIONS
print(versions)
['Exchange2019', 'Exchange2016', 'Exchange2013_SP1', 'Exchange2013', 'Exchange2010_SP2', 'Exchange2010_SP1', 'Exchange2010']
Args:
version (str): An Exchange Version number. Example: 15.20.5 = Exchange2016