Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
[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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.