![]()
The root element of the XML representation of the policy object.
The policy-level context is provided for resolution of named permission set references. For example, code groups use policy level to find named permission sets by name.
Custom code that extends security policy objects needs to implement the ISecurityPolicyEncodable.ToXml(System.Security.Policy.PolicyLevel) and ISecurityPolicyEncodable.FromXml(SecurityElement, System.Security.Policy.PolicyLevel) methods to make the objects security-encodable.