AssemblyBuilder.SecurityRuleSet Property

Gets a value that indicates which set of security rules the common language runtime (CLR) enforces for this assembly.

Namespace:  System.Reflection.Emit
Assembly:  mscorlib (in mscorlib.dll)

public override SecurityRuleSet SecurityRuleSet { get; }

Property Value

Type: System.Security.SecurityRuleSet
The security rule set that the CLR enforces for this dynamic assembly.

The .NET Framework 4 always enforces level 2 transparency (SecurityRuleSet.Level2) for the dynamic assemblies it generates.

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft