Share via


UserCertificateEnrollmentManager.InstallCertificateAsync Method

Definition

Asynchronously installs a certificate chain into the app container on the local computer.

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

Parameters

certificate
String

Platform::String

winrt::hstring

The encoded certificate. The certificate is encoded by using Distinguished Encoding Rules (DER) as defined by the Abstract Syntax Notation One (ASN.1) standard.

installOption
InstallOptions

An InstallOptions enumeration value that specifies the certificate installation option.

Returns

This method does not return a value.

Attributes

Applies to