MessageCertificateX509File.RemoveCertificateFromStore Method (MessageCertificateX509File)

 

Removes a certificate from the store based on a MessageCertificateX509File instance. Note that this will dispose any certificate resources from this instance and the X509Certificate object will no longer be usable.

Namespace:   Microsoft.ConfigurationManagement.Messaging.Framework
Assembly:  Microsoft.ConfigurationManagement.Messaging (in Microsoft.ConfigurationManagement.Messaging.dll)

Syntax

public static void RemoveCertificateFromStore(
    MessageCertificateX509File certificate
)
public:
static void RemoveCertificateFromStore(
    MessageCertificateX509File^ certificate
)
Public Shared Sub RemoveCertificateFromStore (
    certificate As MessageCertificateX509File
)

Parameters

Exceptions

Exception Condition
ArgumentNullException

Must define a certificate object instance.

ObjectDisposedException

Certificate must not have been disposed.

See Also

RemoveCertificateFromStore Overload
MessageCertificateX509File Class
Microsoft.ConfigurationManagement.Messaging.Framework Namespace

Return to top