Freigeben über


IVsSolutionBuildManager2.get_StartupProject Method (IVsHierarchy%)

Programmatic method to get the startup project that will be run when the F5 key is pressed.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

Syntax

'Declaration
Function get_StartupProject ( _
    <OutAttribute> ByRef ppHierarchy As IVsHierarchy _
) As Integer
'Usage
Dim instance As IVsSolutionBuildManager2
Dim ppHierarchy As IVsHierarchy
Dim returnValue As Integer

returnValue = instance.get_StartupProject(ppHierarchy)
int get_StartupProject(
    out IVsHierarchy ppHierarchy
)
int get_StartupProject(
    [OutAttribute] IVsHierarchy^% ppHierarchy
)
abstract get_StartupProject : 
        ppHierarchy:IVsHierarchy byref -> int 
function get_StartupProject(
    ppHierarchy : IVsHierarchy
) : int

Parameters

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Implements

IVsSolutionBuildManager.get_StartupProject(IVsHierarchy%)

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsSolutionBuildManager2::get_StartupProject(
   [out] IVsHierarchy **ppHierarchy
);

Normally, the environment uses the settings in the Solution Configuration property pages for the startup project or projects started when DebugLaunch is called. You can programmatically get and set the startup project using get_StartupProject and set_StartupProject.

Hinweis

get_StartupProject and set_StartupProject have the ability to set only a single startup project. If you want to set multiple startup projects, you should use the Solution Configuration property pages or go through the automation model, specifically, DTE.Solution.SolutionBuild.StartupProjects. For more information, see Contributing to the Automation Model.

.NET Framework Security

See Also

Reference

IVsSolutionBuildManager2 Interface

IVsSolutionBuildManager2 Members

get_StartupProject Overload

Microsoft.VisualStudio.Shell.Interop Namespace