Marks a configuration section for protection.
Assembly: System.Configuration (in System.Configuration.dll)
The method marks the section for encryption so it will be written in encrypted form on disk.
The following protection providers are included by default:
If you call the method with a nullptr parameter or an empty string, the class is used as the protection provider.
For more information about protected configuration sections, see Encrypting Configuration Information Using Protected Configuration.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.