EvaluateCondition Method (condition)

DTF API

Copy image CopyHover image
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++ F#
public bool EvaluateCondition(
	string condition
)
Public Function EvaluateCondition ( 
	condition As String
) As Boolean
public:
bool EvaluateCondition(
	String^ condition
)
member EvaluateCondition : 
        condition : string -> bool 
Parameters
condition (String)
conditional expression
Return Value
Boolean
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
InvalidOperationException the conditional expression is invalid

Assembly: Microsoft.Deployment.WindowsInstaller (Module: Microsoft.Deployment.WindowsInstaller.dll) Version: 3.0.0.0 (3.11.1.2318)