API Reference
DirectAccessControl
DirectAccess/IPv6 transition policy controls (v6Transition key under Policies). Currently supports Force_Tunneling setting.
Inheritance
- Object
- DirectAccessControl
Constructors
public DirectAccessControl(String id, String title, CxDirectAccessField field, CxComparator comparator) #Creates a DirectAccess control for the given field.
Parameters
- id System.String
- title System.String
- field ComputerX.Controls.CxDirectAccessField
- comparator ComputerX.Controls.CxComparator
Methods
public virtual CxEval Evaluate(String host, CxFacts facts) #CxEvalEvaluates the current value against desired values and returns a vendor comparison map.
Parameters
- host System.String
- facts ComputerX.Controls.CxFacts
public virtual Boolean IsApplicable(CxFacts facts) #BooleanChecks whether this control applies in the given facts context.
Parameters
- facts ComputerX.Controls.CxFacts
public virtual Object ReadCurrent(String host, CxFacts facts) #ObjectReads the current policy value from the target host.
Parameters
- host System.String
- facts ComputerX.Controls.CxFacts
public virtual Boolean TryWrite(String host, Object value, out String error) #BooleanAttempts to write the desired value to the target host.
Parameters
- host System.String
- value System.Object
- error System.String@
public DirectAccessControl WhereIs(CxCondition c) #DirectAccessControlSets an applicability predicate for this control.
Parameters
- c ComputerX.Controls.CxCondition
public DirectAccessControl 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) #DirectAccessControlAdds a vendor desired value with optional metadata.
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) #BooleanParameters
- obj Object
Properties
public virtual String Id { get; } #Stable identifier of the control.
public virtual String Title { get; } #Human-friendly control title.
public virtual CxComparator Comparator { get; } #Comparator used to evaluate current vs desired value.
public virtual CxValueKind ValueKind { get; } #Value kind for comparison (String).
public CxCondition Where { get; set; } #Optional applicability predicate limiting where the control applies.
public CxDirectAccessField Field { get; } #Field evaluated by this control.
public virtual IReadOnlyList<CxDesired> Desired { get; } #Vendor desired values for this control (per baseline family).