Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

ProtectedConfigurationProviderCollection Class

Provides a collection of ProtectedConfigurationProvider objects.

Namespace:  System.Configuration
Assembly:  System.Configuration (in System.Configuration.dll)
public class ProtectedConfigurationProviderCollection : ProviderCollection

The Providers property of the ProtectedConfiguration class is a ProtectedConfigurationProviderCollection collection of all protected-configuration providers available to your application.

You can encrypt sections of a configuration file to protect sensitive information used by your application. This improves security by making unauthorized access difficult, even if an attacker gains access to your configuration file.

The .NET Framework includes two protected configuration providers that can be used to encrypt sections of a configuration file: the RsaProtectedConfigurationProvider class, which uses the RSACryptoServiceProvider class to encrypt configuration sections, and the DpapiProtectedConfigurationProvider class, which uses the Windows Data Protection API (DPAPI) to encrypt configuration sections.

You might have a requirement to encrypt sensitive information using an algorithm other than the RSA or DPAPI providers. In this case, you can build your own custom protected-configuration provider. The ProtectedConfigurationProvider class is an abstract base class that you must inherit from to create your own protected-configuration provider.

For more information about protected configuration, see Encrypting Configuration Information Using Protected Configuration.

System.Object
  System.Configuration.Provider.ProviderCollection
    System.Configuration.ProtectedConfigurationProviderCollection
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0, 2.0
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.