Skip to content

IVariableResolver Interface

MethodDescription
AddVariable(sourceLineNumber, name, value, overridable)Add a variable.
ResolveVariables(sourceLineNumbers, value)Resolve the wix variables in a value.
ResolveVariables(sourceLineNumbers, value, errorOnUnknown)Resolve the wix variables in a value.
WixToolset.Extensibility.dll version 5.0.0+41e11442b2ca93e444b60213b5ae99dcbab787d8

AddVariable(sourceLineNumber, name, value, overridable) Method

Section titled “AddVariable(sourceLineNumber, name, value, overridable) Method”

Add a variable.

public void AddVariable(
WixToolset.Data.SourceLineNumber sourceLineNumber,
string name,
string value,
bool overridable
)
ParameterTypeDescription
sourceLineNumberWixToolset.Data.SourceLineNumberThe source line information for the value.
namestringThe name of the variable.
valuestringThe value of the variable.
overridableboolIndicates whether the variable can be overridden by an existing variable.

ResolveVariables(sourceLineNumbers, value) Method

Section titled “ResolveVariables(sourceLineNumbers, value) Method”

Resolve the wix variables in a value.

public IVariableResolution ResolveVariables(
WixToolset.Data.SourceLineNumber sourceLineNumbers,
string value
)
ParameterTypeDescription
sourceLineNumbersWixToolset.Data.SourceLineNumberThe source line information for the value.
valuestringThe value to resolve.

IVariableResolution The resolved result.

ResolveVariables(sourceLineNumbers, value, errorOnUnknown) Method

Section titled “ResolveVariables(sourceLineNumbers, value, errorOnUnknown) Method”

Resolve the wix variables in a value.

public IVariableResolution ResolveVariables(
WixToolset.Data.SourceLineNumber sourceLineNumbers,
string value,
bool errorOnUnknown
)
ParameterTypeDescription
sourceLineNumbersWixToolset.Data.SourceLineNumberThe source line information for the value.
valuestringThe value to resolve.
errorOnUnknownbooltrue if unknown variables should throw errors.

IVariableResolution The resolved value.