X509Certificate2Enumerator::Current Property

 

Gets the current element in the X509Certificate2Collection object.

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

public:
property X509Certificate2^ Current {
	X509Certificate2^ get();
}

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
Return to top
Show: