Share via


BuildEventsClass.OnBuildBegin Event

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Occurs before the solution builds, before a batch build begins, or just before a project begins to build.

Namespace:  EnvDTE
Assembly:  EnvDTE (in EnvDTE.dll)

Syntax

'Declaration
Public Overridable Event OnBuildBegin As _dispBuildEvents_OnBuildBeginEventHandler
public virtual event _dispBuildEvents_OnBuildBeginEventHandler OnBuildBegin
public:
virtual   event _dispBuildEvents_OnBuildBeginEventHandler^ OnBuildBegin {
    void add (_dispBuildEvents_OnBuildBeginEventHandler^ value);
    void remove (_dispBuildEvents_OnBuildBeginEventHandler^ value);
}
abstract OnBuildBegin : IEvent<_dispBuildEvents_OnBuildBeginEventHandler,
    EventArgs>
override OnBuildBegin : IEvent<_dispBuildEvents_OnBuildBeginEventHandler,
    EventArgs>
JScript does not support events.

Implements

_dispBuildEvents_Event.OnBuildBegin

Remarks

OnBuildBegin occurs when you:

  • Select either the Build Solution, Rebuild Solution, or Clean Solution command on the Build menu.

  • Click the Build, Rebuild, or Clean buttons in the Batch Build dialog box.

  • Select the Build <project> or Rebuild <project> commands on the Build menu, or on the project's context menu.

  • Invoke a build by using the shortcuts keys, such as CTRL + SHIFT + B.

.NET Framework Security

See Also

Reference

BuildEventsClass Class

EnvDTE Namespace