VCProjectEngine.Events Propriété
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Retourne l'objet qui est la source des événements déclenchés par le moteur de projet.
public:
property System::Object ^ Events { System::Object ^ get(); };
public:
property Platform::Object ^ Events { Platform::Object ^ get(); };
[System.Runtime.InteropServices.DispId(224)]
public object Events { [System.Runtime.InteropServices.DispId(224)] get; }
[<System.Runtime.InteropServices.DispId(224)>]
[<get: System.Runtime.InteropServices.DispId(224)>]
member this.Events : obj
Public ReadOnly Property Events As Object
Valeur de propriété
Objet qui représente la source des événements.
- Attributs
Exemples
' 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
Remarques
VCProjectEngineEventsPour plus d’informations, consultez objet.