X509Certificate2.Reset Method ()

 
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.

Resets the state of an X509Certificate2 object.

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

[PermissionSetAttribute(SecurityAction.LinkDemand, Unrestricted = true)]
[PermissionSetAttribute(SecurityAction.InheritanceDemand, 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.

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.

.NET Framework
Available since 2.0
Return to top
Show: