Exemplo n.º 1
0
		protected override void UpgradeExchangeVersion(ADObject adObject)
		{
			string text = (string)adObject[ADMailboxRecipientSchema.ServerLegacyDN];
			if (!string.IsNullOrEmpty(text))
			{
				Server server = base.GlobalConfigSession.FindServerByLegacyDN(text);
				if (server == null)
				{
					base.WriteError(new ManagementObjectNotFoundException(Strings.ErrorServerNotFound(text)), ExchangeErrorCategory.Client, null);
				}
				ExchangeObjectVersion exchangeVersion = ExchangeObjectVersion.Exchange2003;
				if (server.IsE14OrLater)
				{
					ADRecipient adrecipient = adObject as ADRecipient;
					MailEnabledRecipient mailEnabledRecipient = adObject as MailEnabledRecipient;
					RecipientTypeDetails recipientTypeDetails = (adrecipient != null) ? adrecipient.RecipientTypeDetails : ((mailEnabledRecipient != null) ? mailEnabledRecipient.RecipientTypeDetails : RecipientTypeDetails.None);
					exchangeVersion = ADUser.GetMaximumSupportedExchangeObjectVersion(recipientTypeDetails, false);
				}
				else if (server.IsExchange2007OrLater)
				{
					exchangeVersion = ExchangeObjectVersion.Exchange2007;
				}
				adObject.SetExchangeVersion(exchangeVersion);
			}
		}
        // Token: 0x060005AF RID: 1455 RVA: 0x00015824 File Offset: 0x00013A24
        protected virtual void UpgradeExchangeVersion(ADObject adObject)
        {
            adObject.SetExchangeVersion(adObject.MaximumSupportedExchangeObjectVersion);
            ADLegacyVersionableObject adlegacyVersionableObject = adObject as ADLegacyVersionableObject;

            if (adlegacyVersionableObject != null)
            {
                adlegacyVersionableObject.MinAdminVersion = new int?(adObject.ExchangeVersion.ExchangeBuild.ToExchange2003FormatInt32());
            }
        }
Exemplo n.º 3
0
 protected override void UpgradeExchangeVersion(ADObject adObject)
 {
     base.UpgradeExchangeVersion(adObject);
     adObject.SetExchangeVersion(ExchangeObjectVersion.Exchange2010);
 }