This documentation is archived and is not being maintained.

X509Certificate2.Reset Method

Resets the state of an X509Certificate2 object.

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

[PermissionSetAttribute(SecurityAction.InheritanceDemand, Unrestricted = true)]
[PermissionSetAttribute(SecurityAction.LinkDemand, Unrestricted = true)]
public override void Reset()

This method can be used to reset the state of the certificate. It also frees any resources associated with the certificate.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

  • SecurityAction.LinkDemand 

    for full trust for the immediate caller. This member cannot be used by partially trusted code.

  • SecurityAction.InheritanceDemand 

    for full trust for inheritors. This member cannot be inherited by partially trusted code.

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: