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,
public static X509Certificate2Collection FindUserCertificates(
X509FindType type,
object value,
StoreName storeName = StoreName.My,
bool validOnly = true
)
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
.
X509Certificate2Collection
A System.Security.Cryptography.X509Certificates.X509Certificate2Collection
object containing the result of search.
This document is generated by DG.