Saves policy as modified in the security policy state as exposed by the PolicyHierarchy, and the PolicyLevel, the ICodeGroup, and other classes that represent configuration of security policy.
[Visual Basic] Public Shared Sub SavePolicy() [C#] public static void SavePolicy(); [C++] public: static void SavePolicy(); [JScript] public static function SavePolicy();
Unless this method is subsequently called, changes made to the policy objects will not be saved and therefore will not affect subsequent application runs.
File access exceptions are possible if there are problems writing files, but these are not specific to this method.
SecurityManager Class | SecurityManager Members | System.Security Namespace