Share via


KeyStorageProviderNames.PlatformKeyStorageProvider 属性

定义

返回“Microsoft Platform Crypyto 密钥存储提供程序”作为提供程序名称。

public:
 static property Platform::String ^ PlatformKeyStorageProvider { Platform::String ^ get(); };
static winrt::hstring PlatformKeyStorageProvider();
public static string PlatformKeyStorageProvider { get; }
var string = KeyStorageProviderNames.platformKeyStorageProvider;
Public Shared ReadOnly Property PlatformKeyStorageProvider As String

属性值

String

Platform::String

winrt::hstring

提供程序名称。

示例

public void SampleKspNames()
{
    // Create a new CertificateRequestProperties object.
    CertificateRequestProperties reqProperties = new CertificateRequestProperties();

    // Retrieve the default value ("Microsoft Software Key Storage Provider").
    String strDefaultName = reqProperties.KeyStorageProviderName;

    // Set the value to "Microsoft Platform Crypyto Key Storage Provider".
    reqProperties.KeyStorageProviderName = KeyStorageProviderNames.PlatformKeyStorageProvider;

    // Set the value to "Microsoft Smart Card Key Storage Provider".
    reqProperties.KeyStorageProviderName = KeyStorageProviderNames.SmartcardKeyStorageProvider;
}

适用于