示例#1
0
 public static Datacenter.ExchangeSku GetExchangeSku()
 {
     if (Datacenter.IsMicrosoftHostedOnly(true))
     {
         return(Datacenter.ExchangeSku.ExchangeDatacenter);
     }
     if (Datacenter.IsPartnerHostedOnly(true))
     {
         return(Datacenter.ExchangeSku.PartnerHosted);
     }
     if (Datacenter.IsDatacenterDedicated(true))
     {
         return(Datacenter.ExchangeSku.DatacenterDedicated);
     }
     return(Datacenter.ExchangeSku.Enterprise);
 }
示例#2
0
 public static bool IsMultiTenancyEnabled()
 {
     try
     {
         if (Datacenter.IsPartnerHostedOnly(true))
         {
             return(true);
         }
     }
     catch (CannotDetermineExchangeModeException)
     {
     }
     try
     {
         if (Datacenter.IsMicrosoftHostedOnly(true))
         {
             return(true);
         }
     }
     catch (CannotDetermineExchangeModeException)
     {
     }
     return(false);
 }