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

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.
public PolicyStatementAttribute Attributes { get; set; }

Gets or sets the attributes of the policy statement.

public string AttributeString { get; }

Gets a string representation of the attributes of the policy statement.

public PermissionSet PermissionSet { get; set; }

Gets or sets the PermissionSet of the policy statement.

Initializes a new instance of the PolicyStatement class with the specified PermissionSet.

Initializes a new instance of the PolicyStatement class with the specified PermissionSet and attributes.

Creates an equivalent copy of the current policy statement.

public void FromXml(SecurityElement et)

Reconstructs a security object with a given state from an XML encoding.

public void FromXml(SecurityElement et, PolicyLevel level)

Reconstructs a security object with a given state from an XML encoding.

Creates an XML encoding of the security object and its current state.

Creates an XML encoding of the security object and its current state.