SecurityManager.SavePolicy Method ()
Saves the modified security policy state.
Assembly: mscorlib (in mscorlib.dll)
[ObsoleteAttribute("This method is obsolete and will be removed in a future release of the .NET Framework. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information.")] [SecurityPermissionAttribute(SecurityAction.Demand, Flags = SecurityPermissionFlag.ControlPolicy)] public static void SavePolicy()
This method uses code access security (CAS) policy, which is obsolete in the .NET Framework 4. To enable CAS policy for compatibility with earlier versions of the .NET Framework, use the <legacyCasPolicy> element.
The code that calls this method does not have SecurityPermissionFlag.ControlPolicy.
Available since 1.1