The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
X509Certificate2Enumerator::Current Property
.NET Framework (current version)
Gets the current element in the X509Certificate2Collection object.
Assembly: System (in System.dll)
Property Value
Type: System.Security.Cryptography.X509Certificates::X509Certificate2^The current element in the X509Certificate2Collection object.
| Exception | Condition |
|---|---|
| InvalidOperationException | The enumerator is positioned before the first element of the collection or after the last element. |
X509Certificate2Enumerator does not move the position of the enumerator. Consecutive calls to the Current property return the same object until either the MoveNext or Reset method is called.
.NET Framework
Available since 2.0
Available since 2.0
Show: