PackageUtilities::IsCapabilityMatch Method (IVsBooleanSymbolPresenceChecker^, String^)

Visual Studio 2015
 

Determines whether a given project matches the requirements prescribed in an AppliesTo expression.

Namespace:   Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)

public:
static bool IsCapabilityMatch(
	IVsBooleanSymbolPresenceChecker^ capabilityPresenceChecker,
	String^ capabilityAppliesToExpression
)

Parameters

capabilityPresenceChecker
Type: Microsoft.VisualStudio.Shell.Interop::IVsBooleanSymbolPresenceChecker^

The project capability presence checker to use when evaluating the expression.

capabilityAppliesToExpression
Type: System::String^

The capability expression, such as "(VisualC | CSharp) + (MSTest | NUnit)".

The '|' is the OR operator.

The '&' and '+' characters are both AND operators.

The '!' character is the NOT operator.

Parentheses force evaluation precedence order.

A null or empty expression is evaluated as a match.

Return Value

Type: System::Boolean

True if the project contains a matching set of project capabilities; false otherwise.

Return to top
Show: