PackageUtilities::IsCapabilityMatch Method (IVsHierarchy^, String^)
Visual Studio 2015
Checks whether a given project matches the requirements prescribed in an AppliesTo expression.
Assembly: Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)
public: [ExtensionAttribute] static bool IsCapabilityMatch( IVsHierarchy^ project, String^ capabilityAppliesToExpression )
Parameters
- project
-
Type:
Microsoft.VisualStudio.Shell.Interop::IVsHierarchy^
The project to test for compatibility.
- 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::Booleantrue if the project contains a matching set of project capabilities; otherwise, false.
Show: