CngKey.UniqueName Property


Gets the unique name for the key.

 property System::String ^ UniqueName { System::String ^ get(); };
[get: System.Security.SecurityCritical]
public string UniqueName { get; }
member this.UniqueName : string
Public ReadOnly Property UniqueName As String

Property Value

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.

Applies to