Udostępnij za pośrednictwem


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
'Usage
Dim instance As CodeModelEvents
[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
public interface CodeModelEvents extends _CodeModelEvents, _dispCodeModelEvents_Event

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

CodeModelEvents Members

EnvDTE80 Namespace

Other Resources

How to: Compile and Run the Automation Object Model Code Examples

Discovering Code by Using the Code Model (Visual Basic)

Discovering Code by Using the Code Model (Visual C#)