Share via


CertificateQuery Class

Definition

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

public ref class CertificateQuery sealed
/// [Windows.Foundation.Metadata.Activatable(65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class CertificateQuery final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
class CertificateQuery final
[Windows.Foundation.Metadata.Activatable(65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class CertificateQuery
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
public sealed class CertificateQuery
function CertificateQuery()
Public NotInheritable Class CertificateQuery
Inheritance
Object Platform::Object IInspectable CertificateQuery
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Constructors

CertificateQuery()

Creates a new instance of a certificate query.

Properties

EnhancedKeyUsages

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

FriendlyName

Gets or sets the certificate friendly name to search for.

HardwareOnly

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

IncludeDuplicates

Gets or sets whether to include duplicates.

IncludeExpiredCertificates

Gets or sets whether to include expired certificates.

IssuerName

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

StoreName

Gets or sets the store name.

Thumbprint

Gets or sets a certificate thumbprint to search for.

Applies to