From 6403937f00ce8d1b79330636cf3ab6af73ccd9d6 Mon Sep 17 00:00:00 2001 From: Elinor Fung Date: Tue, 3 Sep 2024 12:40:06 -0700 Subject: [PATCH] Update Assembly.IsFullyTrusted and AppDomain.IsFullyTrusted properties for .NET Core/5+ behaviour (#10343) --- xml/System.Reflection/Assembly.xml | 9 +++++---- xml/System/AppDomain.xml | 7 +++++-- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/xml/System.Reflection/Assembly.xml b/xml/System.Reflection/Assembly.xml index 5d478f09233..4b51e0b8802 100644 --- a/xml/System.Reflection/Assembly.xml +++ b/xml/System.Reflection/Assembly.xml @@ -3901,7 +3901,10 @@ This property is marked obsolete starting in .NET 5, and generates a compile-tim Gets a value that indicates whether the current assembly is loaded with full trust. - if the current assembly is loaded with full trust; otherwise, . + .NET Framework only: if the current assembly is loaded with full trust; otherwise, . + + .NET Core and .NET 5+: in all cases. + To be added. @@ -6328,9 +6331,7 @@ In .NET 5 and later versions, for bundled assemblies, the value returned is an e diff --git a/xml/System/AppDomain.xml b/xml/System/AppDomain.xml index 806285f3dcd..d159ec07035 100644 --- a/xml/System/AppDomain.xml +++ b/xml/System/AppDomain.xml @@ -6509,12 +6509,15 @@ This method overload uses the information from the Gets a value that indicates whether assemblies that are loaded into the current application domain execute with full trust. - if assemblies that are loaded into the current application domain execute with full trust; otherwise, . + .NET Framework only: if assemblies that are loaded into the current application domain execute with full trust; otherwise, . + + .NET Core and .NET 5+: in all cases. + method overload, unless the permissions that are granted to the application domain are equivalent to full trust. + **.NET Framework only:** This method always returns `true` for the default application domain of an application that runs on the desktop. It returns `false` for a sandboxed application domain that was created by using the method overload, unless the permissions that are granted to the application domain are equivalent to full trust.