X509ExtensionEnumerator.IEnumerator.Current Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

This API supports the product infrastructure and is not intended to be used directly from your code.

Gets an object from a collection.

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

object IEnumerator.Current { get; }

Property Value

Type: System.Object

The current element in the X509ExtensionCollection.

Exception Condition
InvalidOperationException

The enumerator is positioned before the first element of the collection or after the last element.

X509ExtensionEnumerator does not move the position of the enumerator and consecutive calls to Current return the same object until either MoveNext or Reset is called.

.NET Framework
Available since 2.0
Return to top
Show: