ActivationConstraint.ProjectAddedItem(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates an activation constraint that is true
when a file matching the regex pattern
provided is added to a project in the solution that is opened.
public static Microsoft.VisualStudio.Extensibility.ActivationConstraint ProjectAddedItem (string regexPattern);
static member ProjectAddedItem : string -> Microsoft.VisualStudio.Extensibility.ActivationConstraint
Public Shared Function ProjectAddedItem (regexPattern As String) As ActivationConstraint
Parameters
- regexPattern
- String
The regex pattern to match.
Returns
A constraint that is true
when a file matching the regex pattern provided is
added to a project in the solution that is opened.