UserCertificateEnrollmentManager.InstallCertificateAsync 方法

定义

在本地计算机上的应用容器中异步安装证书链。

public:
 virtual IAsyncAction ^ InstallCertificateAsync(Platform::String ^ certificate, InstallOptions installOption) = InstallCertificateAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncAction InstallCertificateAsync(winrt::hstring const& certificate, InstallOptions const& installOption);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncAction InstallCertificateAsync(string certificate, InstallOptions installOption);
function installCertificateAsync(certificate, installOption)
Public Function InstallCertificateAsync (certificate As String, installOption As InstallOptions) As IAsyncAction

参数

certificate
String

Platform::String

winrt::hstring

编码的证书。 使用 可辨别编码规则 (DER) 对证书进行编码,这与抽象语法表示法 One (ASN.1) 标准一样。

installOption
InstallOptions

一个 InstallOptions 枚举值,该值指定证书安装选项。

返回

此方法不返回值。

属性

适用于