ProtectedConfiguration.DataProtectionProviderName 欄位
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
資料保護提供者的名稱。
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)
備註
這是一個常數字串變數,包含系統為保護設定區段所提供的資料保護提供者名稱。