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
Значение свойства
Имя поставщика.
Примеры
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;
}