API Reference
Class
ServiceStartupControl
Control that evaluates and can set the startup type of a Windows service.
Inheritance
- Object
- ServiceStartupControl
Constructors
public ServiceStartupControl(String id, String title, String serviceName, CxComparator comparator) #Creates a service startup control.
Parameters
- id System.String
- title System.String
- serviceName System.String
- comparator ComputerX.Controls.CxComparator
Methods
public virtual CxEval Evaluate(String host, CxFacts facts) #Returns:
CxEvalEvaluates current startup type against desired mapping.
Parameters
- host System.String
- facts ComputerX.Controls.CxFacts
public virtual String GetAnchor() #Returns:
StringReturns the specific service-startup anchor including scope when available. Format: SS|ServiceName|Scope where Scope may be null/empty.
public virtual String GetUnifiedAnchor() #Returns:
StringReturns the canonical unified anchor for this service. Format: U|SS|ServiceName (no scope component).
public virtual Boolean IsApplicable(CxFacts facts) #Returns:
BooleanChecks whether this control applies in the given facts context.
Parameters
- facts ComputerX.Controls.CxFacts
public virtual Object ReadCurrent(String host, CxFacts facts) #Returns:
ObjectReads current startup type for the service on the target host.
Parameters
- host System.String
- facts ComputerX.Controls.CxFacts
public virtual Boolean TryWrite(String host, Object value, out String error) #Returns:
BooleanAttempts to set the service startup type.
Parameters
- host System.String
- value System.Object
- error System.String@
public ServiceStartupControl WhereIs(CxCondition c) #Returns:
ServiceStartupControlSets an applicability predicate for this control.
Parameters
- c ComputerX.Controls.CxCondition
public ServiceStartupControl WithDesired(CxVendor vendor, String startupType, String ruleId = null, String note = null, String description = null, String referenceUrl = null, String severity = null, String category = null, String[] tags = null) #Returns:
ServiceStartupControlAdds a vendor desired startup type (Automatic/Manual/Disabled).
Parameters
- vendor ComputerX.Controls.CxVendor
- startupType System.String
- 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; } #public virtual String Title { get; } #public virtual CxValueKind ValueKind { get; } #public virtual CxComparator Comparator { get; } #public String ServiceName { get; } #Service name (short name).
public CxCondition Where { get; set; } #Optional applicability predicate.
public virtual IReadOnlyList<CxDesired> Desired { get; } #