コード例 #1
0
 internal static object InstantiateFfoOrExoClass(string ffoTypeName, Type exoType)
 {
     if (DatacenterRegistry.IsForefrontForOffice() && !DatacenterRegistry.IsForefrontForOfficeDeployment())
     {
         Assembly assembly = Assembly.Load("Microsoft.Exchange.Hygiene.Data");
         Type     type     = assembly.GetType(ffoTypeName);
         return(Activator.CreateInstance(type));
     }
     return(Activator.CreateInstance(exoType));
 }