Microsoft.Win32
2 wrapped types. Load them with using { "Microsoft.Win32" }. Click a class to open it.
Registry class static
Microsoft.Win32.Registry · assembly Microsoft.Win32.Registry
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
CurrentUser | RegistryKey | read · static | o.CurrentUser |
LocalMachine | RegistryKey | read · static | o.LocalMachine |
ClassesRoot | RegistryKey | read · static | o.ClassesRoot |
Users | RegistryKey | read · static | o.Users |
PerformanceData | RegistryKey | read · static | o.PerformanceData |
CurrentConfig | RegistryKey | read · static | o.CurrentConfig |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
GetValue | GetValue(p1,p2,p3) | static object GetValue(string keyName, string valueName, object defaultValue) |
SetValue | SetValue([ :keyName = …, :valueName = …, :value = … ])SetValue([ :keyName = …, :valueName = …, :value = …, :valueKind = … ]) | static void SetValue(string keyName, string valueName, object value)static void SetValue(string keyName, string valueName, object value, RegistryValueKind valueKind) |
RegistryKey class sealed
Microsoft.Win32.RegistryKey · assembly Microsoft.Win32.Registry
Implements: IDisposable
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
SubKeyCount | int | read | o.SubKeyCount |
View | RegistryView | read | o.View |
Handle | SafeRegistryHandle | read | o.Handle |
ValueCount | int | read | o.ValueCount |
Name | string | read | o.Name |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Close | callMethod("Close",[]) | void Close() |
CreateSubKey | CreateSubKey(value)CreateSubKey([ :subkey = … ])CreateSubKey([ :subkey = …, :writable = … ])CreateSubKey([ :subkey = …, :permissionCheck = … ])CreateSubKey([ :subkey = …, :writable = …, :options = … ]) | RegistryKey CreateSubKey(string subkey)RegistryKey CreateSubKey(string subkey, bool writable)RegistryKey CreateSubKey(string subkey, bool writable, RegistryOptions options)RegistryKey CreateSubKey(string subkey, RegistryKeyPermissionCheck permissionCheck)RegistryKey CreateSubKey(string subkey, RegistryKeyPermissionCheck permissionCheck, RegistryOptions registryOptions, RegistrySecurity registrySecurity)RegistryKey CreateSubKey(string subkey, RegistryKeyPermissionCheck permissionCheck, RegistrySecurity registrySecurity)RegistryKey CreateSubKey(string subkey, RegistryKeyPermissionCheck permissionCheck, RegistryOptions registryOptions) |
DeleteSubKey | callMethod("DeleteSubKey",[p1])callMethod("DeleteSubKey",[p1,p2]) | void DeleteSubKey(string subkey)void DeleteSubKey(string subkey, bool throwOnMissingSubKey) |
DeleteSubKeyTree | callMethod("DeleteSubKeyTree",[p1])callMethod("DeleteSubKeyTree",[p1,p2]) | void DeleteSubKeyTree(string subkey)void DeleteSubKeyTree(string subkey, bool throwOnMissingSubKey) |
DeleteValue | callMethod("DeleteValue",[p1])callMethod("DeleteValue",[p1,p2]) | void DeleteValue(string name)void DeleteValue(string name, bool throwOnMissingValue) |
Dispose | callMethod("Dispose",[]) | void Dispose() |
Flush | callMethod("Flush",[]) | void Flush() |
FromHandle | FromHandle(value)FromHandle([ :handle = … ])FromHandle([ :handle = …, :view = … ]) | static RegistryKey FromHandle(SafeRegistryHandle handle)static RegistryKey FromHandle(SafeRegistryHandle handle, RegistryView view) |
GetAccessControl | GetAccessControl(NULL)GetAccessControl(value)GetAccessControl([ :includeSections = … ]) | RegistrySecurity GetAccessControl()RegistrySecurity GetAccessControl(AccessControlSections includeSections) |
GetSubKeyNames | callMethod("GetSubKeyNames",[]) | string[] GetSubKeyNames() |
GetValue | GetValue(value)GetValue([ :name = … ])GetValue([ :name = …, :defaultValue = … ])GetValue([ :name = …, :defaultValue = …, :options = … ]) | object GetValue(string name)object GetValue(string name, object defaultValue)object GetValue(string name, object defaultValue, RegistryValueOptions options) |
GetValueKind | callMethod("GetValueKind",[p1]) | RegistryValueKind GetValueKind(string name) |
GetValueNames | callMethod("GetValueNames",[]) | string[] GetValueNames() |
OpenBaseKey | OpenBaseKey(p1,p2) | static RegistryKey OpenBaseKey(RegistryHive hKey, RegistryView view) |
OpenRemoteBaseKey | OpenRemoteBaseKey([ :hKey = …, :machineName = … ])OpenRemoteBaseKey([ :hKey = …, :machineName = …, :view = … ]) | static RegistryKey OpenRemoteBaseKey(RegistryHive hKey, string machineName)static RegistryKey OpenRemoteBaseKey(RegistryHive hKey, string machineName, RegistryView view) |
OpenSubKey | OpenSubKey(value)OpenSubKey([ :name = … ])OpenSubKey([ :name = …, :writable = … ])OpenSubKey([ :name = …, :permissionCheck = … ])OpenSubKey([ :name = …, :rights = … ]) | RegistryKey OpenSubKey(string name)RegistryKey OpenSubKey(string name, bool writable)RegistryKey OpenSubKey(string name, RegistryKeyPermissionCheck permissionCheck)RegistryKey OpenSubKey(string name, RegistryRights rights)RegistryKey OpenSubKey(string name, RegistryKeyPermissionCheck permissionCheck, RegistryRights rights) |
SetAccessControl | SetAccessControl(p1) | void SetAccessControl(RegistrySecurity registrySecurity) |
SetValue | SetValue([ :name = …, :value = … ])SetValue([ :name = …, :value = …, :valueKind = … ]) | void SetValue(string name, object value)void SetValue(string name, object value, RegistryValueKind valueKind) |
ToString | callMethod("ToString",[]) | string ToString() |