X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2Freferencesource%2Fmscorlib%2Fsystem%2Factivator.cs;h=0a1ffa93eb5fd2feba2032785873a8b1d16f6c26;hb=a8bd1c919751806eb9bfe0960abae3e496c19ae4;hp=758e9681363af43dc0fc484d92535586b379667a;hpb=0ab9a9a3056384fb6740809b64901b44b9b770bf;p=mono.git diff --git a/mcs/class/referencesource/mscorlib/system/activator.cs b/mcs/class/referencesource/mscorlib/system/activator.cs index 758e9681363..0a1ffa93eb5 100644 --- a/mcs/class/referencesource/mscorlib/system/activator.cs +++ b/mcs/class/referencesource/mscorlib/system/activator.cs @@ -611,6 +611,7 @@ namespace System { #if FEATURE_COMINTEROP || MONO_COM || MOBILE_LEGACY #if FEATURE_CLICKONCE || MOBILE_LEGACY +#if FEATURE_CLICKONCE || MONO_FEATURE_MULTIPLE_APPDOMAINS [System.Security.SecuritySafeCritical] // auto-generated public static ObjectHandle CreateInstance (ActivationContext activationContext) { AppDomainManager domainManager = AppDomain.CurrentDomain.DomainManager; @@ -628,6 +629,17 @@ namespace System { return domainManager.ApplicationActivator.CreateInstance(activationContext, activationCustomData); } +#else + [Obsolete ("Activator.CreateInstance (ActivationContext) is not supported on this platform.", true)] + public static ObjectHandle CreateInstance (ActivationContext activationContext) { + throw new PlatformNotSupportedException ("Activator.CreateInstance (ActivationContext) is not supported on this platform."); + } + + [Obsolete ("Activator.CreateInstance (ActivationContext, string[]) is not supported on this platform.", true)] + public static ObjectHandle CreateInstance (ActivationContext activationContext, string[] activationCustomData) { + throw new PlatformNotSupportedException ("Activator.CreateInstance (ActivationContext) is not supported on this platform."); + } +#endif #endif // FEATURE_CLICKONCE [ResourceExposure(ResourceScope.Machine)]