Windows Dev Center

CertificateQuery class

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

Syntax


var certificateQuery = new Windows.Security.Cryptography.Certificates.CertificateQuery();

Members

The CertificateQuery class has these types of members:

Constructors

The CertificateQuery class has these constructors.

ConstructorDescription
CertificateQuery Creates a new instance of a certificate query.

 

Methods

The CertificateQuery class inherits methods from the Object class (C#/VB/C++).

Properties

The CertificateQuery class has these properties.

PropertyAccess typeDescription

EnhancedKeyUsages

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

FriendlyName

Read/writeGets or sets the certificate friendly name to search for.

HardwareOnly

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

IssuerName

Read/writeGets or sets the name of the certificate issuer to search for.

Thumbprint

Read/writeGets or sets a certificate thumbprint to search for.

 

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

 

 

Show:
© 2015 Microsoft