Jaa


CertificateRequestProperties.KeyStorageProviderName Property

Definition

Gets or sets the name of the key storage provider (KSP) that will be used to generate the private key.

public:
 property Platform::String ^ KeyStorageProviderName { Platform::String ^ get(); void set(Platform::String ^ value); };
winrt::hstring KeyStorageProviderName();

void KeyStorageProviderName(winrt::hstring value);
public string KeyStorageProviderName { get; set; }
var string = certificateRequestProperties.keyStorageProviderName;
certificateRequestProperties.keyStorageProviderName = string;
Public Property KeyStorageProviderName As String

Property Value

String

Platform::String

winrt::hstring

The KSP name. The default value is "Microsoft Software Key Storage Provider".

Examples

public String GetSetKspName(String strNameIn)
{
    // Create a new CertificateRequestProperties object.
    CertificateRequestProperties reqProperties = new CertificateRequestProperties();

    // The default value is Microsoft Software Key Storage Provider.
    String strDefaultName = reqProperties.KeyStorageProviderName;

    // If the input option does not equal the default option, reset the property value.
    if (strNameIn != strDefaultName)
    {
        reqProperties.KeyStorageProviderName = strNameIn;
    }

    // Return the KSP name.
    return reqProperties.KeyStorageProviderName;
}

Remarks

The name of a cryptographic service provider (CSP) cannot be used.

Applies to