RegistryOptions 列舉

定義

指定建立登錄機碼時要使用的選項。

此列舉支援其成員值的位元組合。

public enum class RegistryOptions
[System.Flags]
public enum RegistryOptions
[<System.Flags>]
type RegistryOptions = 
Public Enum RegistryOptions
繼承
RegistryOptions
屬性

欄位

None 0

非 Volatile 機碼。 此為預設值。

Volatile 1

Volatile 機碼。 在記憶體中儲存資訊,而且當對應的登錄區卸載時不會保留資訊。

備註

您可以建立只能在記憶體中使用的登錄機碼,且計算機重新啟動時不會保存。 這稱為變動性索引鍵。 您可以使用採用options參數的方法多載,指定您想要建立 volatile 或 non-volatile 索引鍵RegistryKey.CreateSubKey

適用於