API Reference
FirewallServiceExceptionControl
Control for firewall service exception fields.
Inheritance
- Object
- FirewallServiceExceptionControl
Constructors
public FirewallServiceExceptionControl(String id, String title, FirewallProfileKind profile, String serviceName, CxFirewallServiceExceptionField field, CxComparator comparator, CxValueKind valueKind) #Creates a firewall service exception control.
Parameters
- id System.String
- title System.String
- profile ComputerX.Firewall.FirewallProfileKind
- serviceName System.String
- field ComputerX.Controls.CxFirewallServiceExceptionField
- comparator ComputerX.Controls.CxComparator
- valueKind ComputerX.Controls.CxValueKind
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 exception 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 FirewallServiceExceptionControl WhereIs(CxCondition c) #FirewallServiceExceptionControlSets an applicability predicate for this control.
Parameters
- c ComputerX.Controls.CxCondition
public FirewallServiceExceptionControl 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) #FirewallServiceExceptionControlAdds 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 CxValueKind ValueKind { get; } #Value kind for comparison.
public virtual CxComparator Comparator { get; } #Comparator used to evaluate current vs desired value.
public FirewallProfileKind Profile { get; } #Firewall profile this exception applies to.
public String ServiceName { get; } #Service key name (e.g., RemoteDesktop, UPnPFramework, FileAndPrint, or RemoteAdminSettings).
public CxFirewallServiceExceptionField Field { get; } #Field evaluated by this control.
public CxCondition Where { get; set; } #Optional applicability predicate limiting where the control applies.
public virtual IReadOnlyList<CxDesired> Desired { get; } #Vendor desired values (per baseline family).