X509Certificate2Collection.GetEnumerator Method

Definition

Returns an enumerator that can iterate through a X509Certificate2Collection object.

public:
 System::Security::Cryptography::X509Certificates::X509Certificate2Enumerator ^ GetEnumerator();
public System.Security.Cryptography.X509Certificates.X509Certificate2Enumerator GetEnumerator ();
override this.GetEnumerator : unit -> System.Security.Cryptography.X509Certificates.X509Certificate2Enumerator
Public Function GetEnumerator () As X509Certificate2Enumerator

Returns

X509Certificate2Enumerator

An X509Certificate2Enumerator object that can iterate through the X509Certificate2Collection object.

Remarks

Enumerators allow read-only access to data in the collection. Enumerators cannot be used to modify the underlying collection.

Applies to