CngKey.UniqueName 屬性

定義

取得金鑰的唯一名稱。Gets the unique name for the key.

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

屬性值

String

金鑰的替代名稱。An alternate name for the key. 如果金鑰是暫時的,則值為 nullIf 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. MicrosoftSoftwareKeyStorageProvider屬性會傳回索引鍵的檔案名作為此屬性。The MicrosoftSoftwareKeyStorageProvider property will return the file name of the key as this property. 所傳回的名稱 MicrosoftSmartCardKeyStorageProvider 與執行相依。The name returned by the MicrosoftSmartCardKeyStorageProvider is implementation-dependent.

適用於