SectionInformation.IsProtected Property
Gets a value that indicates whether the associated configuration section is protected.
Assembly: System.Configuration (in System.Configuration.dll)
Property Value
Type: System.Booleantrue if this ConfigurationSection is protected; otherwise, false. The default is false.
Protected configuration sections are encrypted and read-only.
For more information about protected configuration sections, see Encrypting Configuration Information Using Protected Configuration.
The examples in this section show how to get the IsProtected property value after accessing the related section information in the configuration file.
The following example gets the SectionInformation object.
The following example gets the IsProtected value.
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.