Share via


Certificates Property

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Returns a collection of certificates located in an X.509 certificate store.

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

Syntax

'Declaration
Public ReadOnly Property Certificates As X509Certificate2Collection
public X509Certificate2Collection Certificates { get; }
public:
property X509Certificate2Collection^ Certificates {
    X509Certificate2Collection^ get ();
}
member Certificates : X509Certificate2Collection with get
function get Certificates () : X509Certificate2Collection

Property Value

Type: System.Security.Cryptography.X509Certificates. . :: . .X509Certificate2Collection
A collection of certificates.

Remarks

This method returns a snapshot of the X.509 certificate store. Note that subsequent Add or Remove operations performed on the store will not have any effect on the collection that is returned. This snapshot is recalculated each time the property is called, so the use of this property inside an iterative function is not recommended.

.NET Framework Security

See Also

Reference

X509Store Class

System.Security.Cryptography.X509Certificates Namespace