ActivationConstraint.ProjectAddedItem(String) Method

Definition

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.

Applies to