Deployment Tools Foundation
EvaluateCondition Method (condition, defaultValue)
Deployment Tools Foundation Namespaces ► Microsoft.Deployment.WindowsInstaller ► Session ► EvaluateCondition(String, Boolean)
Evaluates a logical expression containing symbols and values, specifying a default
value to be returned in case the condition is empty.
Declaration Syntax| C# | Visual Basic | Visual C++ | F# |
public bool EvaluateCondition( string condition, bool defaultValue )
Public Function EvaluateCondition ( condition As String, defaultValue As Boolean ) As Boolean
public: bool EvaluateCondition( String^ condition, bool defaultValue )
member EvaluateCondition : condition : string * defaultValue : bool -> bool
Return ValueBoolean
The result of the condition evaluation
The result of the condition evaluation
RemarksWin32 MSI API: MsiEvaluateCondition
Exceptions| Exception | Condition |
|---|---|
| InvalidHandleException | the Session handle is invalid |
| InvalidOperationException | the conditional expression is invalid |
Assembly: Microsoft.Deployment.WindowsInstaller (Module: Microsoft.Deployment.WindowsInstaller.dll) Version: 3.0.0.0 (3.11.1.2318)