CngPropertyOptions 列舉
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
指定 Cryptography Next Generation (CNG) 金鑰屬性的選項。
此列舉支援其成員值的位元組合。
public enum class CngPropertyOptions
C#
[System.Flags]
public enum CngPropertyOptions
[<System.Flags>]
type CngPropertyOptions =
Public Enum CngPropertyOptions
- 繼承
- 屬性
名稱 | 值 | Description |
---|---|---|
CustomProperty | 1073741824 | 屬性不是由 CNG 指定。 使用這個選項可避免未來命名與 CNG 屬性發生衝突。 |
None | 0 | 參考的屬性沒有選項。 |
Persist | -2147483648 | 屬性應該是持續的。 |
這些選項可用來初始化 CngProperty 對象,然後用於 SetProperty 呼叫。 當您使用 方法查詢屬性 GetProperty 的值時,也會使用這些選項。
屬性必須透過 CngPropertyOptions 儲存的屬性進行查詢。 否則,將不會找到它們。
產品 | 版本 |
---|---|
.NET | Core 1.0, Core 1.1, 6, 7, 8, 9 |
.NET Framework | 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0, 2.1 |
Windows Desktop | 3.0, 3.1, 5 |