API Reference
ComputerXPolicySource
IPolicySource backed by ComputerX.Registry. Supports local and remote reads/writes with resilience and optional host reachability guards. The source operates under a fixed root prefix like "HKLM" or "HKU\\<SID>" and all relative key paths passed to the methods are appended to this root.
Inheritance
- Object
- ComputerXPolicySource
Constructors
public ComputerXPolicySource(String computer, String rootPrefix) #Creates a ComputerX-backed policy source for a given computer and root prefix.
Parameters
- computer System.String
- Target computer name ("." for local).
- rootPrefix System.String
- "HKLM" or "HKU\\<SID>"
Methods
public virtual Void ClearKey(String key) #VoidDeletes all values under the specified key.
Parameters
- key System.String
public virtual Boolean ContainsValue(String key, String value) #BooleanDetermines whether the specified value exists under the root prefix.
Parameters
- key System.String
- Relative registry key path.
- value System.String
- Registry value name.
Returns
True when the value is present.
public virtual Void DeleteValue(String key, String value) #VoidDeletes a value if present.
Parameters
- key System.String
- value System.String
public virtual Void ForgetKeyClearance(String key) #VoidNo-op for live registry sources.
Parameters
- key System.String
public virtual Void ForgetValue(String key, String value) #VoidNo-op for live registry sources.
Parameters
- key System.String
- value System.String
public virtual IReadOnlyList<String> GetSubKeyNames(String key) #IReadOnlyList<String>Returns immediate subkey names under the specified key.
Parameters
- key System.String
public virtual Object GetValue(String key, String value) #ObjectGets the value data for a key/value under the root prefix.
Parameters
- key System.String
- Relative registry key path.
- value System.String
- Registry value name.
Returns
Value data or null on failure.
public virtual IReadOnlyList<String> GetValueNames(String key) #IReadOnlyList<String>Returns value names defined under the specified relative key.
Parameters
- key System.String
public virtual Void SetValue(String key, String value, Object data, RegistryValueKind dataType) #VoidSets a registry value under the root prefix using ComputerX.Registry writer helpers.
Parameters
- key System.String
- value System.String
- data System.Object
- dataType Microsoft.Win32.RegistryValueKind
public virtual Boolean WillDeleteValue(String key, String value) #BooleanAlways returns false for live registry sources (no deferred deletions).
Parameters
- key System.String
- value System.String