Skip to main content

IVariableResolver Interface

Methods

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.2+aa65968c419420d32e3e1b647aea0082f5ca5b78

AddVariable(sourceLineNumber, name, value, overridable) Method

Add a variable.

Declaration

public void AddVariable(
WixToolset.Data.SourceLineNumber sourceLineNumber,
string name,
string value,
bool overridable
)

Parameters

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

Resolve the wix variables in a value.

Declaration

public IVariableResolution ResolveVariables(
WixToolset.Data.SourceLineNumber sourceLineNumbers,
string value
)

Parameters

ParameterTypeDescription
sourceLineNumbersWixToolset.Data.SourceLineNumberThe source line information for the value.
valuestringThe value to resolve.

Return value

IVariableResolution The resolved result.

ResolveVariables(sourceLineNumbers, value, errorOnUnknown) Method

Resolve the wix variables in a value.

Declaration

public IVariableResolution ResolveVariables(
WixToolset.Data.SourceLineNumber sourceLineNumbers,
string value,
bool errorOnUnknown
)

Parameters

ParameterTypeDescription
sourceLineNumbersWixToolset.Data.SourceLineNumberThe source line information for the value.
valuestringThe value to resolve.
errorOnUnknownbooltrue if unknown variables should throw errors.

Return value

IVariableResolution The resolved value.