CertificateStore CertificateStore CertificateStore CertificateStore CertificateStore Class

Definition

Represents a certificate store for an app.

public : sealed class CertificateStore : ICertificateStore, ICertificateStore2
struct winrt::Windows::Security::Cryptography::Certificates::CertificateStore : ICertificateStore, ICertificateStore2
public sealed class CertificateStore : ICertificateStore, ICertificateStore2
Public NotInheritable Class CertificateStore Implements ICertificateStore, ICertificateStore2
// This class does not provide a public constructor.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

You can retrieve certificates from the certificate store using the FindAllAsync method.

Properties

Name Name Name Name Name

Gets the name of the certificate store.

public : Platform::String Name { get; }
winrt::hstring Name();
public string Name { get; }
Public ReadOnly Property Name As string
var string = certificateStore.name;
Value
string string string

The name of the certificate store.

Methods

Add(Certificate) Add(Certificate) Add(Certificate) Add(Certificate) Add(Certificate)

Adds a certificate to the certificate store.

public : void Add(Certificate certificate)
void Add(Certificate certificate) const;
public void Add(Certificate certificate)
Public Function Add(certificate As Certificate) As void
certificateStore.add(certificate);
Parameters
certificate
Certificate Certificate Certificate

The certificate to add to the certificate store.

Delete(Certificate) Delete(Certificate) Delete(Certificate) Delete(Certificate) Delete(Certificate)

Deletes a certificate from the certificate store.

public : void Delete(Certificate certificate)
void Delete(Certificate certificate) const;
public void Delete(Certificate certificate)
Public Function Delete(certificate As Certificate) As void
certificateStore.delete(certificate);
Parameters
certificate
Certificate Certificate Certificate

The certificate to delete from the certificate store.