<PackageReference Include="System.Security.Permissions" Version="10.0.4" />

System.Security.Policy.PolicyStatement

Represents the statement of a CodeGroup describing the permissions and other information that apply to code with a particular set of evidence. This class cannot be inherited.
namespace System.Security.Policy { public sealed class PolicyStatement : ISecurityEncodable, ISecurityPolicyEncodable { public PolicyStatementAttribute Attributes { get; set; } public string AttributeString { get; } public PermissionSet PermissionSet { get; set; } public PolicyStatement(PermissionSet permSet); public PolicyStatement(PermissionSet permSet, PolicyStatementAttribute attributes); public PolicyStatement Copy(); public void FromXml(SecurityElement et); public void FromXml(SecurityElement et, PolicyLevel level); public SecurityElement ToXml(); public SecurityElement ToXml(PolicyLevel level); } }