Share via


BuildableItem Constructor

Definition

Initializes a new instance of the BuildableItem class.

public:
 BuildableItem(System::String ^ id, System::String ^ displayName, Microsoft::VisualStudio::RpcContracts::Build::BuildableKind buildableKind, bool isStartupItem, bool supportsLaunch, System::String ^ activeLaunchProfileId, System::Collections::Generic::IReadOnlyDictionary<Microsoft::VisualStudio::RpcContracts::Build::BuildAction, Microsoft::VisualStudio::RpcContracts::Build::BuildAvailabilityProperty> ^ buildActionAvailability, System::Collections::Generic::IReadOnlyList<Microsoft::VisualStudio::RpcContracts::Build::LaunchProfile ^> ^ launchProfiles);
public BuildableItem (string id, string displayName, Microsoft.VisualStudio.RpcContracts.Build.BuildableKind buildableKind, bool isStartupItem, bool supportsLaunch, string activeLaunchProfileId, System.Collections.Generic.IReadOnlyDictionary<Microsoft.VisualStudio.RpcContracts.Build.BuildAction,Microsoft.VisualStudio.RpcContracts.Build.BuildAvailabilityProperty> buildActionAvailability, System.Collections.Generic.IReadOnlyList<Microsoft.VisualStudio.RpcContracts.Build.LaunchProfile> launchProfiles);
new Microsoft.VisualStudio.RpcContracts.Build.BuildableItem : string * string * Microsoft.VisualStudio.RpcContracts.Build.BuildableKind * bool * bool * string * System.Collections.Generic.IReadOnlyDictionary<Microsoft.VisualStudio.RpcContracts.Build.BuildAction, Microsoft.VisualStudio.RpcContracts.Build.BuildAvailabilityProperty> * System.Collections.Generic.IReadOnlyList<Microsoft.VisualStudio.RpcContracts.Build.LaunchProfile> -> Microsoft.VisualStudio.RpcContracts.Build.BuildableItem
Public Sub New (id As String, displayName As String, buildableKind As BuildableKind, isStartupItem As Boolean, supportsLaunch As Boolean, activeLaunchProfileId As String, buildActionAvailability As IReadOnlyDictionary(Of BuildAction, BuildAvailabilityProperty), launchProfiles As IReadOnlyList(Of LaunchProfile))

Parameters

id
String

The identity of the buildable item. Case-insensitive. This identity can be: One of the WellKnownBuildableItemIds; OR, for files found in an opened folder, this value should be the Microsoft.VisualStudio.Workspace.ProjectConfiguration.Id; OR, for projects from a loaded solution, this value should be the project's GUID.

displayName
String

The name for the buildable item that is suitable for display to a user.

buildableKind
BuildableKind

The kind (i.e. the variety) of the buildable item.

isStartupItem
Boolean

The value indicating whether the buildable item is a selected project or file that should be displayed to the user as an item that will be launched (possibly with a debugger attached) when the Launch or Debug command is invoked.

supportsLaunch
Boolean

A value indicating whether the buildable item supports launch (e.g. debug) operations.

activeLaunchProfileId
String

The Id of the active LaunchProfile.

buildActionAvailability
IReadOnlyDictionary<BuildAction,BuildAvailabilityProperty>

The availability of the various build actions.

launchProfiles
IReadOnlyList<LaunchProfile>

The buildable item's launch profiles.

Applies to