Skip to content

Commit 6403937

Browse files
authored
Update Assembly.IsFullyTrusted and AppDomain.IsFullyTrusted properties for .NET Core/5+ behaviour (dotnet#10343)
1 parent 212eb2d commit 6403937

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

xml/System.Reflection/Assembly.xml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3901,7 +3901,10 @@ This property is marked obsolete starting in .NET 5, and generates a compile-tim
39013901
<Docs>
39023902
<summary>Gets a value that indicates whether the current assembly is loaded with full trust.</summary>
39033903
<value>
3904-
<see langword="true" /> if the current assembly is loaded with full trust; otherwise, <see langword="false" />.</value>
3904+
.NET Framework only: <see langword="true" /> if the current assembly is loaded with full trust; otherwise, <see langword="false" />.
3905+
3906+
.NET Core and .NET 5+: <see langword="true" /> in all cases.
3907+
</value>
39053908
<remarks>To be added.</remarks>
39063909
</Docs>
39073910
</Member>
@@ -6328,9 +6331,7 @@ In .NET 5 and later versions, for bundled assemblies, the value returned is an e
63286331
<format type="text/markdown"><![CDATA[
63296332

63306333
## Remarks
6331-
By default, assemblies that you compile with the .NET Framework 4 have [level 2](/dotnet/framework/misc/security-transparent-code-level-2) transparency, although you can explicitly make them [level 1](/dotnet/framework/misc/security-transparent-code-level-1) instead. Assemblies that were compiled with earlier versions of the .NET Framework have level 1 transparency.
6332-
6333-
See [Security Changes](/dotnet/framework/security/security-changes).
6334+
**.NET Framework only:** By default, assemblies that you compile with the .NET Framework 4 have [level 2](/dotnet/framework/misc/security-transparent-code-level-2) transparency, although you can explicitly make them [level 1](/dotnet/framework/misc/security-transparent-code-level-1) instead. Assemblies that were compiled with earlier versions of the .NET Framework have level 1 transparency. See [Security Changes](/dotnet/framework/security/security-changes).
63346335

63356336
]]></format>
63366337
</remarks>

xml/System/AppDomain.xml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6509,12 +6509,15 @@ This method overload uses the <xref:System.AppDomainSetup> information from the
65096509
<Docs>
65106510
<summary>Gets a value that indicates whether assemblies that are loaded into the current application domain execute with full trust.</summary>
65116511
<value>
6512-
<see langword="true" /> if assemblies that are loaded into the current application domain execute with full trust; otherwise, <see langword="false" />.</value>
6512+
.NET Framework only: <see langword="true" /> if assemblies that are loaded into the current application domain execute with full trust; otherwise, <see langword="false" />.
6513+
6514+
.NET Core and .NET 5+: <see langword="true" /> in all cases.
6515+
</value>
65136516
<remarks>
65146517
<format type="text/markdown"><![CDATA[
65156518

65166519
## Remarks
6517-
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 <xref:System.AppDomain.CreateDomain%28System.String%2CSystem.Security.Policy.Evidence%2CSystem.AppDomainSetup%2CSystem.Security.PermissionSet%2CSystem.Security.Policy.StrongName%5B%5D%29?displayProperty=nameWithType> method overload, unless the permissions that are granted to the application domain are equivalent to full trust.
6520+
**.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 <xref:System.AppDomain.CreateDomain%28System.String%2CSystem.Security.Policy.Evidence%2CSystem.AppDomainSetup%2CSystem.Security.PermissionSet%2CSystem.Security.Policy.StrongName%5B%5D%29?displayProperty=nameWithType> method overload, unless the permissions that are granted to the application domain are equivalent to full trust.
65186521

65196522

65206523

0 commit comments

Comments
 (0)