語言

CngKey.IsEphemeral 屬性

定義

取得金鑰的持久性狀態。

public:
 property bool IsEphemeral { bool get(); };
public bool IsEphemeral { get; }
[set: System.Security.SecurityCritical]
public bool IsEphemeral { [System.Security.SecurityCritical] get; }
[set: System.Security.SecurityCritical]
public bool IsEphemeral { get; }
member this.IsEphemeral : bool
[<get: System.Security.SecurityCritical>]
[<set: System.Security.SecurityCritical>]
member this.IsEphemeral : bool
[<set: System.Security.SecurityCritical>]
member this.IsEphemeral : bool
Public ReadOnly Property IsEphemeral As Boolean

屬性值

true若密鑰是短暫的;否則,。 false

屬性

備註

此特性決定金鑰是短暫的(即金鑰僅存在於句柄的存續期間),還是持久的(即金鑰獨立於句柄存在)。

回傳值取決於所用以取得密鑰的方法:

此物業沒有公開二傳;它是唯讀的。

適用於