共用方式為


CertificateRequestProperties.KeyStorageProviderName 屬性

定義

取得或設定將用來產生私密金鑰的金鑰儲存提供者名稱, (KSP) 。

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

屬性值

String

Platform::String

winrt::hstring

KSP 名稱。 預設值為 「Microsoft Software Key Storage Provider」。

範例

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;
}

備註

無法使用密碼 編譯服務提供者 的名稱, (CSP) 。

適用於