API Reference
Class
SecurityOptionControl
Typed Security Option control that reads/writes well-known security settings from registry.
Inheritance
- Object
- SecurityOptionControl
Constructors
public SecurityOptionControl(String id, String title, CxSecurityOption option, CxComparator comparator) #Creates a Security Option control bound to a specific option.
Parameters
- id System.String
- title System.String
- option ComputerX.Controls.CxSecurityOption
- comparator ComputerX.Controls.CxComparator
Methods
public virtual CxEval Evaluate(String host, CxFacts facts) #Returns:
CxEvalEvaluates current vs desired option value.
Parameters
- host System.String
- facts ComputerX.Controls.CxFacts
public virtual Boolean IsApplicable(CxFacts facts) #Returns:
BooleanTrue when the control applies to the provided facts.
Parameters
- facts ComputerX.Controls.CxFacts
public virtual Object ReadCurrent(String host, CxFacts facts) #Returns:
ObjectReads the current option value from registry.
Parameters
- host System.String
- facts ComputerX.Controls.CxFacts
public virtual Boolean TryWrite(String host, Object value, out String error) #Returns:
BooleanWrites the option value back to registry.
Parameters
- host System.String
- value System.Object
- error System.String@
public SecurityOptionControl WhereIs(CxCondition c) #Returns:
SecurityOptionControlSets an applicability condition.
Parameters
- c ComputerX.Controls.CxCondition
public SecurityOptionControl WithDesired(CxVendor vendor, Object value, String ruleId = null, String note = null, String description = null, String referenceUrl = null, String severity = null, String category = null, String[] tags = null) #Returns:
SecurityOptionControlAdds a vendor desired value for this option.
Parameters
- vendor ComputerX.Controls.CxVendor
- value System.Object
- ruleId System.String = null
- note System.String = null
- description System.String = null
- referenceUrl System.String = null
- severity System.String = null
- category System.String = null
- tags System.String[] = null
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object
Properties
public virtual String Id { get; } #Unique identifier for the control.
public CxSecurityOption Option { get; } #Security option kind handled by this control.
public virtual CxComparator Comparator { get; } #Comparator used for evaluation.
public virtual CxValueKind ValueKind { get; } #Value kind for this option (Bool/Int/String).
public CxCondition Where { get; set; } #Optional applicability condition.
public virtual IReadOnlyList<CxDesired> Desired { get; } #Desired value per vendor.