Skip to content

Latest commit

 

History

History
45 lines (30 loc) · 2 KB

Assorted.Utils.Crypto.CertUtils.FindUserCertificates.md

File metadata and controls

45 lines (30 loc) · 2 KB

CertUtils.FindUserCertificates(X509FindType, object, StoreName, bool) Method

Namespace: Assorted.Utils.Crypto
Assembly: Assorted.Utils (Assorted.Utils.dll) version 1.1.0.0

Searches certificates in a specified store of current user using the search criteria specified by the type enumeration and the value object,

Syntax

public static X509Certificate2Collection FindUserCertificates(
    X509FindType type, 
    object value, 
    StoreName storeName = StoreName.My, 
    bool validOnly = true
)

Parameters

type: X509FindType
On of One of the System.Security.Cryptography.X509Certificates.X509FindType values.

value: object
The search criteria as an object.

storeName: StoreName
One of the enumeration values that specifies the name of the X.509 certificate store.

validOnly: bool
true to allow only valid certificates to be returned from the search; otherwise, false.

Return Value

X509Certificate2Collection
A System.Security.Cryptography.X509Certificates.X509Certificate2Collection object containing the result of search.

See Also


This document is generated by DG.