Skip to main content
KeyStorageProviderNames.SmartcardKeyStorageProvider | smartcardKeyStorageProvider property

Applies to Windows and Windows Phone

Returns "Microsoft Smart Card Key Storage Provider" as the provider name.

Syntax


var smartcardKeyStorageProvider = Windows.Security.Cryptography.Certificates.KeyStorageProviderNames.smartcardKeyStorageProvider;

public static string SmartcardKeyStorageProvider { get; }

Public Shared ReadOnly Property SmartcardKeyStorageProvider As String

public:
static property String^ SmartcardKeyStorageProvider { 
   String^ get();
}

Property value

Type: String [JavaScript] | System.String [.NET] | Platform::String [C++]

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 Crypto Provider".
    reqProperties.KeyStorageProviderName = KeyStorageProviderNames.PlatformKeyStorageProvider;

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

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.Security.Cryptography.Certificates
Windows::Security::Cryptography::Certificates [C++]

Metadata

Windows.winmd

See also

KeyStorageProviderNames