SecTrust.SetAnchorCertificates Method

Definition

Overloads

SetAnchorCertificates(SecCertificate[])
SetAnchorCertificates(X509Certificate2Collection)

Provide your own collection of trusted certificate for the evaluation.

SetAnchorCertificates(X509CertificateCollection)

Provide your own collection of trusted certificate for the evaluation.

SetAnchorCertificates(SecCertificate[])

public Security.SecStatusCode SetAnchorCertificates (Security.SecCertificate[] array);
member this.SetAnchorCertificates : Security.SecCertificate[] -> Security.SecStatusCode

Parameters

array
SecCertificate[]

Returns

Applies to

SetAnchorCertificates(X509Certificate2Collection)

Provide your own collection of trusted certificate for the evaluation.

public Security.SecStatusCode SetAnchorCertificates (System.Security.Cryptography.X509Certificates.X509Certificate2Collection certificates);
member this.SetAnchorCertificates : System.Security.Cryptography.X509Certificates.X509Certificate2Collection -> Security.SecStatusCode

Parameters

certificates
X509Certificate2Collection

A collection of anchor (trusted root) certificates.

Returns

An error code.

Applies to

SetAnchorCertificates(X509CertificateCollection)

Provide your own collection of trusted certificate for the evaluation.

public Security.SecStatusCode SetAnchorCertificates (System.Security.Cryptography.X509Certificates.X509CertificateCollection certificates);
member this.SetAnchorCertificates : System.Security.Cryptography.X509Certificates.X509CertificateCollection -> Security.SecStatusCode

Parameters

certificates
X509CertificateCollection

A collection of anchor (trusted root) certificates.

Returns

An error code.

Applies to