Creates an XML encoding of the security object and its current state with the specified System.Security.Policy.PolicyLevel.
- level
The System.Security.Policy.PolicyLevel context, which is used to resolve System.Security.NamedPermissionSet references.
![]()
An XML encoding of the security object, including any state information.