共用方式為


IVsBuildableProjectCfg.StartBuild(IVsOutputWindowPane, UInt32) Method

Definition

Requests that a project begin building.

public:
 int StartBuild(Microsoft::VisualStudio::Shell::Interop::IVsOutputWindowPane ^ pIVsOutputWindowPane, System::UInt32 dwOptions);
public:
 int StartBuild(Microsoft::VisualStudio::Shell::Interop::IVsOutputWindowPane ^ pIVsOutputWindowPane, unsigned int dwOptions);
int StartBuild(Microsoft::VisualStudio::Shell::Interop::IVsOutputWindowPane const & pIVsOutputWindowPane, unsigned int dwOptions);
public int StartBuild (Microsoft.VisualStudio.Shell.Interop.IVsOutputWindowPane pIVsOutputWindowPane, uint dwOptions);
abstract member StartBuild : Microsoft.VisualStudio.Shell.Interop.IVsOutputWindowPane * uint32 -> int
Public Function StartBuild (pIVsOutputWindowPane As IVsOutputWindowPane, dwOptions As UInteger) As Integer

Parameters

pIVsOutputWindowPane
IVsOutputWindowPane

[in] Pointer to the IVsOutputWindowPane interface that can be used to display status during the build operation.

dwOptions
UInt32

[in] Options governing the build operation. The following options are valid:VS_BUILDABLEPROJECTCFGOPTS_REBUILDVS_BUILDABLEPROJECTCFGOPTS_BUILD_SELECTION_ONLYVS_BUILDABLEPROJECTCFGOPTS_BUILD_ACTIVE_DOCUMENT_ONLY

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsBuildableProjectCfg::StartBuild(  
   [in] IVsOutputWindowPane *pIVsOutputWindowPane,  
   [in] DWORD dwOptions  
);  

The options defined for the dwOptions parameter are used to provide the project with information about the scope of the build. VS_BUILDABLEPROJECTCFGOPTS_REBUILD requests that the project rebuild completely regardless of whether it is up to date. VS_BUILDABLEPROJECTCFGOPTS_BUILD_SELECTION_ONLY requests that only the selected items be built. VS_BUILDABLEPROJECTCFGOPTS_BUILD_ACTIVE_DOCUMENT_ONLY requests that only the most recent document to be worked on be built.

Applies to