CertificateQuery CertificateQuery CertificateQuery CertificateQuery CertificateQuery Class


Represents parameters for a query for certificates from the certificate store for an app.

public : sealed class CertificateQuery
struct winrt::Windows::Security::Cryptography::Certificates::CertificateQuery
public sealed class CertificateQuery
Public NotInheritable Class CertificateQuery
var certificateQuery = new certificateQuery();

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)


CertificateQuery() CertificateQuery() CertificateQuery() CertificateQuery() CertificateQuery()

Creates a new instance of a certificate query.


EnhancedKeyUsages EnhancedKeyUsages EnhancedKeyUsages EnhancedKeyUsages EnhancedKeyUsages

Gets a collection of object identifiers (OIDs) for the enhanced key usage extension to search for.

FriendlyName FriendlyName FriendlyName FriendlyName FriendlyName

Gets or sets the certificate friendly name to search for.

HardwareOnly HardwareOnly HardwareOnly HardwareOnly HardwareOnly

Gets or sets a value that indicates whether only hardware certificates (SC or TPM) are to be returned from the query.

IncludeDuplicates IncludeDuplicates IncludeDuplicates IncludeDuplicates IncludeDuplicates

Gets or sets whether to include duplicates.

IncludeExpiredCertificates IncludeExpiredCertificates IncludeExpiredCertificates IncludeExpiredCertificates IncludeExpiredCertificates

Gets or sets whether to include expired certificates.

IssuerName IssuerName IssuerName IssuerName IssuerName

Gets or sets the name of the certificate issuer to search for.

StoreName StoreName StoreName StoreName StoreName

Gets or sets the store name.

Thumbprint Thumbprint Thumbprint Thumbprint Thumbprint

Gets or sets a certificate thumbprint to search for.