Certificate​Stores Certificate​Stores Certificate​Stores Class

Definition

Represents a collection of certificate stores.

public static class CertificateStorespublic static class CertificateStoresPublic Static Class CertificateStores
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Properties

IntermediateCertificationAuthorities IntermediateCertificationAuthorities IntermediateCertificationAuthorities

Gets the certificate store of intermediate certification authorities for an app.

public static CertificateStore IntermediateCertificationAuthorities { get; }public static CertificateStore IntermediateCertificationAuthorities { get; }Public Static ReadOnly Property IntermediateCertificationAuthorities As CertificateStore
Value
CertificateStore CertificateStore CertificateStore

The certificate store of intermediate certification authorities for an app.

Attributes

TrustedRootCertificationAuthorities TrustedRootCertificationAuthorities TrustedRootCertificationAuthorities

Gets the certificate store of trusted root certificates for an app.

public static CertificateStore TrustedRootCertificationAuthorities { get; }public static CertificateStore TrustedRootCertificationAuthorities { get; }Public Static ReadOnly Property TrustedRootCertificationAuthorities As CertificateStore
Value
CertificateStore CertificateStore CertificateStore

The certificate store of trusted root certificates for an app.

Attributes

Methods

FindAllAsync() FindAllAsync() FindAllAsync()

Get all certificates from the certificate stores.

public static IAsyncOperation<IVectorView<Certificate>> FindAllAsync()public static IAsyncOperation<IVectorView<Certificate>> FindAllAsync()Public Static Function FindAllAsync() As IAsyncOperation( Of IVectorViewCertificate )
Returns

An asynchronous operation to retrieve the list of certificates.

Attributes

Remarks

The FindAllAsync method filters the resulting list of certificates and removes duplicates, showing only the most recent certificate when duplicates are found. This only occurs if the app is running in an app container. Duplicate certificates are certificates that have the same subject and issuer.

Expired certificates are not returned in the list of certificates.

FindAllAsync(CertificateQuery) FindAllAsync(CertificateQuery) FindAllAsync(CertificateQuery)

Get all certificates from the certificate stores that match the specified query parameters.

public static IAsyncOperation<IVectorView<Certificate>> FindAllAsync(CertificateQuery query)public static IAsyncOperation<IVectorView<Certificate>> FindAllAsync(CertificateQuery query)Public Static Function FindAllAsync(query As CertificateQuery) As IAsyncOperation( Of IVectorViewCertificate )
Parameters
query
CertificateQuery CertificateQuery CertificateQuery

The certificate values to search for.

Returns

An asynchronous operation to retrieve the list of certificates.

Attributes

Remarks

The FindAllAsync method filters the resulting list of certificates and removes duplicates, showing only the most recent certificate when duplicates are found. This only occurs if the app is running in an app container. Duplicate certificates are certificates that have the same subject and issuer.

Expired certificates are not returned in the list of certificates.

GetStoreByName(String) GetStoreByName(String) GetStoreByName(String)

Gets a certificate store from the collection of certificate stores by name.

public static CertificateStore GetStoreByName(String storeName)public static CertificateStore GetStoreByName(String storeName)Public Static Function GetStoreByName(storeName As String) As CertificateStore
Parameters
storeName
System.String System.String System.String

The name of the certificate store to return. The storeName parameter value cannot be "MY".

Returns

The requested certificate store.

Attributes

GetUserStoreByName(String) GetUserStoreByName(String) GetUserStoreByName(String)

Gets a user certificate store from the collection of certificate stores by name.

public static UserCertificateStore GetUserStoreByName(String storeName)public static UserCertificateStore GetUserStoreByName(String storeName)Public Static Function GetUserStoreByName(storeName As String) As UserCertificateStore
Parameters
storeName
System.String System.String System.String

The name of the user certificate store to return.

Returns
Attributes
Additional features and requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)