CertificateQuery class

Applies to Windows and Windows Phone

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

Syntax


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

Attributes

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

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

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

See also

Object

 

 

Show:
© 2014 Microsoft