2using System.Xml.Serialization;
13[XmlType(TypeName =
"solverEnvironmentVariableDefinition")]
64 [XmlAttribute(
"solverKind")]
74 [XmlAttribute(
"variableName")]
84 [XmlElement(
"description")]
96 [XmlAttribute(
"isLicenseVariable")]
110 [XmlAttribute(
"priority")]
129 throw new InvalidOperationException(
130 "An environment-variable definition must " +
131 "target a concrete solver kind.");
134 if (
string.IsNullOrWhiteSpace(
137 throw new InvalidOperationException(
138 "An environment-variable name is required.");
143 throw new InvalidOperationException(
144 "An environment-variable priority cannot be " +
void EnsureValid()
Validates the environment-variable definition.
bool IsLicenseVariable
Gets or sets a value indicating whether the variable is expected to contain a license location rather...
SolverEnvironmentVariableDefinition(SolverKind solverKind, string variableName, string description)
Initializes an environment-variable definition.
string Description
Gets or sets a human-readable description.
int Priority
Gets or sets the discovery priority associated with the variable.
SolverKind SolverKind
Gets or sets the solver associated with the variable.
SolverEnvironmentVariableDefinition()
Initializes an empty environment-variable definition.
string VariableName
Gets or sets the environment-variable name.