CertificateRequestProperties.KeyStorageProviderName 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定將用來產生私密金鑰的金鑰儲存提供者名稱, (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
屬性值
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;
}