EvaluateCondition Method (condition)

Microsoft Deployment Tools

Deployment Tools Foundation EvaluateCondition Method (condition)
Deployment Tools Foundation NamespacesMicrosoft.Deployment.WindowsInstallerSessionEvaluateCondition(String)
Evaluates a logical expression containing symbols and values.
Declaration Syntax
C# Visual Basic Visual C++
public bool EvaluateCondition(
	string condition
)
Public Function EvaluateCondition ( _
	condition As String _
) As Boolean
public:
bool EvaluateCondition(
	String^ condition
)
Parameters
condition (String)
conditional expression
Return Value
The result of the condition evaluation
Remarks

Win32 MSI API: MsiEvaluateCondition

Exceptions
Exception Condition
InvalidHandleException the Session handle is invalid
ArgumentNullException the condition is null or empty
SyntaxErrorException the conditional expression is invalid

Assembly: Microsoft.Deployment.WindowsInstaller (Module: Microsoft.Deployment.WindowsInstaller) Version: 3.0.0.0 (3.5.1623.0)