Partager via


ProjectInstance.EvaluateCondition(String) Method

Definition

Evaluates the provided string as a condition by expanding items and properties, using the current items and properties available, then doing a logical evaluation. This is useful for the immediate window. Does not expand bare metadata expressions.

public:
 virtual bool EvaluateCondition(System::String ^ condition);
public bool EvaluateCondition (string condition);
abstract member EvaluateCondition : string -> bool
override this.EvaluateCondition : string -> bool
Public Function EvaluateCondition (condition As String) As Boolean

Parameters

condition
String

The string to be expanded.

Returns

true if the string evaluates to true; otherwise, false.

Remarks

This is useful for the immediate window.

Does not expand bare metadata expressions.

Applies to