API Reference
EventLogControl
A control that evaluates Windows Event Log channel policy fields via EventLogPolicyQuery.
Inheritance
- Object
- EventLogControl
Constructors
public EventLogControl(String id, String title, String channel, CxEventLogField field, CxComparator comparator, CxValueKind valueKind) #Creates a control bound to a specific Event Log channel and field.
Parameters
- id System.String
- title System.String
- channel System.String
- field ComputerX.Controls.CxEventLogField
- comparator ComputerX.Controls.CxComparator
- valueKind ComputerX.Controls.CxValueKind
Methods
public virtual CxEval Evaluate(String host, CxFacts facts) #CxEvalEvaluates current vs desired values and returns an aggregated result.
Parameters
- host System.String
- facts ComputerX.Controls.CxFacts
public virtual Boolean IsApplicable(CxFacts facts) #BooleanTrue when the control applies to the provided facts.
Parameters
- facts ComputerX.Controls.CxFacts
public virtual Object ReadCurrent(String host, CxFacts facts) #ObjectReads current policy value from the target channel and returns a shaped value.
Parameters
- host System.String
- facts ComputerX.Controls.CxFacts
public virtual Boolean TryWrite(String host, Object value, out String error) #BooleanAttempts to write the specified value back to policy for the channel.
Parameters
- host System.String
- value System.Object
- error System.String@
public EventLogControl WhereIs(CxCondition c) #EventLogControlSets an applicability condition.
Parameters
- c ComputerX.Controls.CxCondition
public EventLogControl 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) #EventLogControlAdds a vendor-desired value entry.
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; } #Unique identifier for the control.
public virtual String Title { get; } #Display title for the control.
public virtual CxValueKind ValueKind { get; } #Value kind returned by the control.
public virtual CxComparator Comparator { get; } #Comparator used to evaluate desired vs. current.
public String Channel { get; } #Channel name, e.g., Application, Security, System, or provider channel path.
public CxEventLogField Field { get; } #Which policy field to read from the channel.
public CxCondition Where { get; set; } #Optional applicability filter.
public virtual IReadOnlyList<CxDesired> Desired { get; } #Desired target values per vendor source.