Partager via


MessageCertificateX509File.RemoveCertificateFromStore Method (StoreLocation, String, String)

 

Removes a certificate from the certificate store.

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

Syntax

public static bool RemoveCertificateFromStore(
    StoreLocation storeLocation,
    string storeName,
    string certificateThumbprint
)
public:
static bool RemoveCertificateFromStore(
    StoreLocation storeLocation,
    String^ storeName,
    String^ certificateThumbprint
)
Public Shared Function RemoveCertificateFromStore (
    storeLocation As StoreLocation,
    storeName As String,
    certificateThumbprint As String
) As Boolean

Parameters

  • certificateThumbprint
    Type: System.String

    Thumbprint hash of the certificate.

Return Value

Type: System.Boolean

True if the certificate was found and removed; otherwise, false.

See Also

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

Return to top