ProtectedConfiguration.DataProtectionProviderName Field
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The name of the data protection provider.
public: System::String ^ DataProtectionProviderName;
public const string DataProtectionProviderName;
val mutable DataProtectionProviderName : string
Public Const DataProtectionProviderName As String
Field Value
Examples
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);
' Get the current provider name.
Dim dataProtectionProviderName As String = _
ProtectedConfiguration.DataProtectionProviderName
Console.WriteLine( _
"Data protection provider name: {0}", _
dataProtectionProviderName)
Remarks
This a constant string variable that contains the name of the data-protection provider made available by the system to protect a configuration section.
Applies to
See also
Συνεργαστείτε μαζί μας στο GitHub
Μπορείτε να βρείτε την πηγή για αυτό το περιεχόμενο στο GitHub, όπου μπορείτε επίσης να δημιουργήσετε και να εξετάσετε ζητήματα και αιτήματα έλξης. Για περισσότερες πληροφορίες, ανατρέξτε στον οδηγό συνεργατών.