KeyStorageProviderNames.PlatformKeyStorageProvider 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回“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
属性值
提供程序名称。
示例
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;
}