Export (0) Print
Expand All

X509Certificate2Enumerator.Reset Method

Sets the enumerator to its initial position, which is before the first element in the X509Certificate2Collection object.

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

public void Reset ()
public void Reset ()
public function Reset ()
Not applicable.

Exception typeCondition

InvalidOperationException

The collection was modified after the enumerator was created.

An enumerator remains valid as long as the collection remains unchanged. If changes are made to the collection, such as adding, modifying or deleting elements, the enumerator is irrecoverably invalidated and the next call to the MoveNext or Reset method throws an InvalidOperationException.

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

ADD
Show:
© 2014 Microsoft