Requests that a project begins the build process.
Namespace: Microsoft.VisualStudio.Package
Assembly: MPF.Project.NonShipping (in MPF.Project.NonShipping.dll)
Syntax
'宣言
Public Overridable Function StartBuild ( _
pane As IVsOutputWindowPane, _
options As UInteger _
) As Integer
'使用
Dim instance As BuildableProjectConfig
Dim pane As IVsOutputWindowPane
Dim options As UInteger
Dim returnValue As Integer
returnValue = instance.StartBuild(pane, _
options)
public virtual int StartBuild(
IVsOutputWindowPane pane,
uint options
)
public:
virtual int StartBuild(
IVsOutputWindowPane^ pane,
unsigned int options
)
public function StartBuild(
pane : IVsOutputWindowPane,
options : uint
) : int
Parameters
pane
Type: Microsoft.VisualStudio.Shell.Interop.IVsOutputWindowPaneAn IVsOutputWindowPane object that can be used to display status during the build operation.
options
Type: System.UInt32Options governing the build operation. The values are taken from BuildableProjectCfgOpts.
Return Value
Type: System.Int32
If the method succeeds, it returns S_OK, otherwise it returns an error code.
Implements
IVsBuildableProjectCfg.StartBuild(IVsOutputWindowPane, UInt32)
Remarks
The options defined for the options parameter are used to provide the project with information about the scope of the build. Rebuild requests that the project rebuild completely regardless of whether it is up to date. BuildSelectionOnly requests that only the selected items be built. BuildActiveDocumentOnly requests that only the most recent document to be worked on be built.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
BuildableProjectConfig Members