Current Property
Collapse the table of content
Expand the table of content

X509Certificate2Enumerator.Current Property

Gets the current element in the X509Certificate2Collection object.

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

public X509Certificate2 Current { get; }
/** @property */
public X509Certificate2 get_Current ()

public function get Current () : X509Certificate2

Not applicable.

Property Value

The current element in the X509Certificate2Collection object.

Exception typeCondition


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.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

© 2016 Microsoft