Export (0) Print
Expand All

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

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft