DataProtectionBuilderExtensions.UnprotectKeysWithAnyCertificate 方法

定義

設定可用來解密從儲存體載入之金鑰的憑證。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ UnprotectKeysWithAnyCertificate(Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ builder, ... cli::array <System::Security::Cryptography::X509Certificates::X509Certificate2 ^> ^ certificates);
public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder UnprotectKeysWithAnyCertificate (this Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder builder, params System.Security.Cryptography.X509Certificates.X509Certificate2[] certificates);
static member UnprotectKeysWithAnyCertificate : Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder * System.Security.Cryptography.X509Certificates.X509Certificate2[] -> Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder
<Extension()>
Public Function UnprotectKeysWithAnyCertificate (builder As IDataProtectionBuilder, ParamArray certificates As X509Certificate2()) As IDataProtectionBuilder

參數

certificates
X509Certificate2[]

可用來解密金鑰資料的憑證。

傳回

此作業完成之後的 IDataProtectionBuilder 參考。

適用於