CodeModelEvents Interface
Defines events supported by the CodeModel object. Refer to CodeModelEventsClass for this object's documentation.
Assembly: EnvDTE80 (in EnvDTE80.dll)
| Name | Description | |
|---|---|---|
![]() | add_ElementAdded(_dispCodeModelEvents_ElementAddedEventHandler) | This API supports the product infrastructure and is not intended to be used directly from your code. Microsoft Internal Use Only.(Inherited from _dispCodeModelEvents_Event.) |
![]() | add_ElementChanged(_dispCodeModelEvents_ElementChangedEventHandler) | This API supports the product infrastructure and is not intended to be used directly from your code. Microsoft Internal Use Only.(Inherited from _dispCodeModelEvents_Event.) |
![]() | add_ElementDeleted(_dispCodeModelEvents_ElementDeletedEventHandler) | This API supports the product infrastructure and is not intended to be used directly from your code. Microsoft Internal Use Only.(Inherited from _dispCodeModelEvents_Event.) |
![]() | remove_ElementAdded(_dispCodeModelEvents_ElementAddedEventHandler) | This API supports the product infrastructure and is not intended to be used directly from your code. Microsoft Internal Use Only.(Inherited from _dispCodeModelEvents_Event.) |
![]() | remove_ElementChanged(_dispCodeModelEvents_ElementChangedEventHandler) | This API supports the product infrastructure and is not intended to be used directly from your code. Microsoft Internal Use Only.(Inherited from _dispCodeModelEvents_Event.) |
![]() | remove_ElementDeleted(_dispCodeModelEvents_ElementDeletedEventHandler) | This API supports the product infrastructure and is not intended to be used directly from your code. Microsoft Internal Use Only.(Inherited from _dispCodeModelEvents_Event.) |
| Name | Description | |
|---|---|---|
![]() | ElementAdded | This API supports the product infrastructure and is not intended to be used directly from your code. Microsoft Internal Use Only.(Inherited from _dispCodeModelEvents_Event.) |
![]() | ElementChanged | This API supports the product infrastructure and is not intended to be used directly from your code. Microsoft Internal Use Only.(Inherited from _dispCodeModelEvents_Event.) |
![]() | ElementDeleted | This API supports the product infrastructure and is not intended to be used directly from your code. Microsoft Internal Use Only.(Inherited from _dispCodeModelEvents_Event.) |
Note |
|---|
The values of code model elements such as classes, structs, functions, attributes, delegates, and so forth can be non-deterministic after making certain kinds of edits, meaning that their values cannot be relied upon to always remain the same. |
Dim WithEvents oCodeModelEvents As EnvDTE80.CodeModelEvents Public Sub OnCodeElementAdded(ByVal NewElement As EnvDTE.CodeElement) _ Handles oCodeModelEvents.ElementAdded MsgBox(NewElement.Name + "(Kind=" + Str(NewElement.Kind) + ") was _ added.") End Sub


