CodeModelEvents Interface
Defines events supported by the CodeModel object. Refer to CodeModelEventsClass for this object's documentation.
Namespace: EnvDTE80
Assembly: EnvDTE80 (in EnvDTE80.dll)
Syntax
'Declaration
<GuidAttribute("66ADC510-0CA2-475D-A343-57192BCE38BF")> _
Public Interface CodeModelEvents _
Inherits _CodeModelEvents, _dispCodeModelEvents_Event
[GuidAttribute("66ADC510-0CA2-475D-A343-57192BCE38BF")]
public interface CodeModelEvents : _CodeModelEvents,
_dispCodeModelEvents_Event
[GuidAttribute(L"66ADC510-0CA2-475D-A343-57192BCE38BF")]
public interface class CodeModelEvents : _CodeModelEvents,
_dispCodeModelEvents_Event
[<GuidAttribute("66ADC510-0CA2-475D-A343-57192BCE38BF")>]
type CodeModelEvents =
interface
interface _CodeModelEvents
interface _dispCodeModelEvents_Event
end
public interface CodeModelEvents extends _CodeModelEvents, _dispCodeModelEvents_Event
The CodeModelEvents type exposes the following members.
Methods
Name | Description | |
---|---|---|
add_ElementAdded | Infrastructure. Microsoft Internal Use Only. (Inherited from _dispCodeModelEvents_Event.) | |
add_ElementChanged | Infrastructure. Microsoft Internal Use Only. (Inherited from _dispCodeModelEvents_Event.) | |
add_ElementDeleted | Infrastructure. Microsoft Internal Use Only. (Inherited from _dispCodeModelEvents_Event.) | |
remove_ElementAdded | Infrastructure. Microsoft Internal Use Only. (Inherited from _dispCodeModelEvents_Event.) | |
remove_ElementChanged | Infrastructure. Microsoft Internal Use Only. (Inherited from _dispCodeModelEvents_Event.) | |
remove_ElementDeleted | Infrastructure. Microsoft Internal Use Only. (Inherited from _dispCodeModelEvents_Event.) |
Top
Events
Name | Description | |
---|---|---|
ElementAdded | Infrastructure. Microsoft Internal Use Only. (Inherited from _dispCodeModelEvents_Event.) | |
ElementChanged | Infrastructure. Microsoft Internal Use Only. (Inherited from _dispCodeModelEvents_Event.) | |
ElementDeleted | Infrastructure. Microsoft Internal Use Only. (Inherited from _dispCodeModelEvents_Event.) |
Top
Remarks
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. For more information, see the section Code Model Element Values Can Change in Discovering Code by Using the Code Model (Visual Basic).
Examples
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
See Also
Reference
Other Resources
How to: Compile and Run the Automation Object Model Code Examples