語言

ProtectedConfiguration.DataProtectionProviderName 欄位

定義

資料保護提供者的名稱。

public: System::String ^ DataProtectionProviderName;
public const string DataProtectionProviderName;
val mutable DataProtectionProviderName : string
Public Const DataProtectionProviderName As String 

欄位值

範例

以下範例說明如何利用該 DataProtectionProviderName 屬性取得目前資料保護提供者的名稱。

// 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)

備註

這是一個常數字串變數,包含系統為保護設定區段所提供的資料保護提供者名稱。

適用於

另請參閱