Share via


KeyStorageProviderNames.PlatformKeyStorageProvider Property

Definition

Returns "Microsoft Platform Crypyto Key Storage Provider" as the provider name.

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

Property Value

String

Platform::String

winrt::hstring

The provider name.

Examples

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

Applies to