Creates an XML encoding, of the security object and its current state.
Policy level context is provided for resolution of named permission set references. (For instance, code groups use policy level to lookup named permission sets by name.)
[Visual Basic] Function ToXml( _ ByVal level As PolicyLevel _ ) As SecurityElement [C#] SecurityElement ToXml( PolicyLevel level ); [C++] SecurityElement* ToXml( PolicyLevel* level ) = 0; [JScript] function ToXml( level : PolicyLevel ) : SecurityElement;
Root element of XML representation of the policy object.
Custom code that extends security policy objects will need to implement the ToXML and FromXML methods to make the objects security-encodable.
ISecurityPolicyEncodable Interface | ISecurityPolicyEncodable Members | System.Security Namespace