RegistryTools.SetRegistryFromCurrentUserRoot 方法

定義

多載

SetRegistryFromCurrentUserRoot(String, String, Object)

從 HKCU 根登錄設定登錄中的值。

SetRegistryFromCurrentUserRoot(String, String, Object, RegistryValueKind)

從 HKCU 根登錄設定登錄中的值。

SetRegistryFromCurrentUserRoot(String, String, Object)

從 HKCU 根登錄設定登錄中的值。

public:
 virtual bool SetRegistryFromCurrentUserRoot(System::String ^ regKeyPath, System::String ^ regKeyName, System::Object ^ value);
public bool SetRegistryFromCurrentUserRoot (string regKeyPath, string regKeyName, object value);
abstract member SetRegistryFromCurrentUserRoot : string * string * obj -> bool
override this.SetRegistryFromCurrentUserRoot : string * string * obj -> bool
Public Function SetRegistryFromCurrentUserRoot (regKeyPath As String, regKeyName As String, value As Object) As Boolean

參數

regKeyPath
String

格式機碼\subkey\subsubkey 的登錄機碼路徑

regKeyName
String

機碼底下的變數名稱

value
Object

要設定的值

傳回

如果設定為 true,則為 false,如果發生錯誤則為 false

實作

適用於

SetRegistryFromCurrentUserRoot(String, String, Object, RegistryValueKind)

從 HKCU 根登錄設定登錄中的值。

public bool SetRegistryFromCurrentUserRoot (string regKeyPath, string regKeyName, object value, Microsoft.Win32.RegistryValueKind valueKind);
abstract member SetRegistryFromCurrentUserRoot : string * string * obj * Microsoft.Win32.RegistryValueKind -> bool
override this.SetRegistryFromCurrentUserRoot : string * string * obj * Microsoft.Win32.RegistryValueKind -> bool
Public Function SetRegistryFromCurrentUserRoot (regKeyPath As String, regKeyName As String, value As Object, valueKind As RegistryValueKind) As Boolean

參數

regKeyPath
String

格式機碼\subkey\subsubkey 的登錄機碼路徑

regKeyName
String

機碼底下的變數名稱

value
Object

要設定的值

valueKind
RegistryValueKind

RegistryValueKind 類型。 支援的類型為 DWord、QWord

傳回

如果設定為 true,則為 false,如果發生錯誤則為 false

實作

適用於