CngKey.UniqueName Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets the unique name for the key.

Namespace:   System.Security.Cryptography
Assembly:  System.Core (in System.Core.dll)

public string UniqueName { get; }

Property Value

Type: System.String

An alternate name for the key. If the key is ephemeral, the value is null.

This property gets an alternate name that can be used when accessing the key. You can use this property if the original key name does not uniquely identify the persisted key. The MicrosoftSoftwareKeyStorageProvider property will return the file name of the key as this property. The name returned by the MicrosoftSmartCardKeyStorageProvider is implementation-dependent.

.NET Framework
Available since 3.5
Return to top