IVariableResolver Interface
Methods
Method | Description |
---|---|
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
Parameter | Type | Description |
---|---|---|
sourceLineNumber | WixToolset.Data.SourceLineNumber | The source line information for the value. |
name | string | The name of the variable. |
value | string | The value of the variable. |
overridable | bool | Indicates 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
Parameter | Type | Description |
---|---|---|
sourceLineNumbers | WixToolset.Data.SourceLineNumber | The source line information for the value. |
value | string | The 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
Parameter | Type | Description |
---|---|---|
sourceLineNumbers | WixToolset.Data.SourceLineNumber | The source line information for the value. |
value | string | The value to resolve. |
errorOnUnknown | bool | true if unknown variables should throw errors. |
Return value
IVariableResolution
The resolved value.