<PackageReference Include="System.Security.Permissions" Version="11.0.0-preview.2.26159.112" />

System.Security.Policy.AllMembershipCondition

Represents a membership condition that matches all code. This class cannot be inherited.
namespace System.Security.Policy { public sealed class AllMembershipCondition : ISecurityEncodable, ISecurityPolicyEncodable, IMembershipCondition { public AllMembershipCondition(); public bool Check(Evidence evidence); public IMembershipCondition Copy(); public void FromXml(SecurityElement e); public void FromXml(SecurityElement e, PolicyLevel level); public SecurityElement ToXml(); public SecurityElement ToXml(PolicyLevel level); } }