Export (0) Print
Expand All

ProtectedConfiguration.DataProtectionProviderName Field

The name of the data protection provider.

Namespace:  System.Configuration
Assembly:  System.Configuration (in System.Configuration.dll)

public const string DataProtectionProviderName

This a constant string variable that contains the name of the data-protection provider made available by the system to protect a configuration section.

The following example shows how to use the DataProtectionProviderName property to retrieve the name of the current data-protection provider.

// Get the current provider name. 
string dataProtectionProviderName =
   ProtectedConfiguration.DataProtectionProviderName;
Console.WriteLine(
    "Data protection provider name: {0}",
     dataProtectionProviderName);

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft