X509Certificate2Collection Constructor ()


Initializes a new instance of the X509Certificate2Collection class without any X509Certificate2 information.

Namespace:   System.Security.Cryptography.X509Certificates
Assembly:  System (in System.dll)

new : unit -> X509Certificate2Collection

This constructor creates an empty X509Certificate2Collection object, which is unlike the other constructors that use certificate or collection information to create the object.

The following code example opens the current user's personal certificate store, selects only valid certificates, allows the user to select a certificate, and then writes certificate and certificate chain information to the console. The output depends on the certificate the user selects.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top