Skip to main content

Windows Dev Center

CertificateStore class

Represents a certificate store for an app.

Syntax


var certificateStore = Windows.Security.Cryptography.Certificates.CertificateStore.intermediateCertificationAuthorities;
var certificateStore = Windows.Security.Cryptography.Certificates.CertificateStore.trustedRootCertificationAuthorities;
var certificateStore = Windows.Security.Cryptography.Certificates.CertificateStore.getStoreByName();

public sealed class CertificateStore

Public NotInheritable Class CertificateStore

public ref class CertificateStore sealed 

Members

The CertificateStore class has these types of members:

Methods

The CertificateStore class has these methods. With C#, Visual Basic, and C++, it also inherits methods from the Object class.

MethodDescription
Add Adds a certificate to the certificate store.
Delete Deletes a certificate from the certificate store.

 

Remarks

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

Requirements (Windows 10 device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.Security.Cryptography.Certificates
Windows::Security::Cryptography::Certificates [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8.1 [Windows Store apps, desktop apps]

Minimum supported server

Windows Server 2012 R2 [Windows Store apps, desktop apps]

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.Security.Cryptography.Certificates
Windows::Security::Cryptography::Certificates [C++]

Metadata

Windows.winmd

Attributes

[ DualApiPartition()]
[ MarshalingBehavior(Agile)]
[ Threading(Both)]
[ Version(0x06030000)]

See also

Object