Share via


ActivationConstraint.ActiveProjectFlavor(Guid) Method

Definition

Caution

ActiveProjectCapability should be preferred due to better future compatibility.

Creates an activation constraint that is true when the selected project has a flavor matching flavor.

[System.Obsolete("ActiveProjectCapability should be preferred due to better future compatibility.")]
public static Microsoft.VisualStudio.Extensibility.ActivationConstraint ActiveProjectFlavor (Guid flavor);
[<System.Obsolete("ActiveProjectCapability should be preferred due to better future compatibility.")>]
static member ActiveProjectFlavor : Guid -> Microsoft.VisualStudio.Extensibility.ActivationConstraint
Public Shared Function ActiveProjectFlavor (flavor As Guid) As ActivationConstraint

Parameters

flavor
Guid

The project flavor GUID.

Returns

A constraint that is true when the selected project flavor matches with specified flavor.

Attributes

Remarks

This method is deprecated, use ActiveProjectCapability(ProjectCapability) instead.

Applies to