Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Returns the object that is the source of events that are fired by the project engine.
Namespace: Microsoft.VisualStudio.VCProjectEngine
Assembly: Microsoft.VisualStudio.VCProjectEngine (in Microsoft.VisualStudio.VCProjectEngine.dll)
Syntax
'Declaration
ReadOnly Property Events As Object
Get
Object Events { get; }
property Object^ Events {
Object^ get ();
}
abstract Events : Object
function get Events () : Object
Property Value
Type: System.Object
The object that sources the events.
Remarks
See VCProjectEngineEvents object for more information.
Examples
' add reference to Microsoft.VisualStudio.VCProjectEngine
Imports EnvDTE
Imports Microsoft.VisualStudio.VCProjectEngine
Public Module Module1
Sub HookVCEvent()
Dim projEngine As New VCProjectEngineObject
Dim prj As VCProject
Dim evt As VCProjectEngineEvents
' if there is a VC Project Load in the solution
prj = DTE.Solution.Projects.Item(1).Object
projEngine = prj.VCProjectEngine()
evt = projEngine.Events
AddHandler evt.ProjectBuildStarted, AddressOf VCBuildStartedEvent
End Sub
Sub VCBuildStartedEvent(ByVal Cfg As Object)
MsgBox("VC Build Started")
End Sub
End Module
.NET Framework Security
- 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.