CodeModelEvents CodeModelEvents CodeModelEvents CodeModelEvents CodeModelEvents CodeModelEvents Interface

Definition

Defines events supported by the CodeModel object. Refer to CodeModelEventsClass for this object's documentation.

public interface class CodeModelEvents : EnvDTE80::_CodeModelEvents, EnvDTE80::_dispCodeModelEvents_Event
public interface class CodeModelEvents : EnvDTE80::_CodeModelEvents, EnvDTE80::_dispCodeModelEvents_Event
__interface CodeModelEvents : EnvDTE80::_CodeModelEvents, EnvDTE80::_dispCodeModelEvents_Event
[System.Runtime.InteropServices.CoClass(typeof(EnvDTE80.CodeModelEventsClass))]
[System.Runtime.InteropServices.Guid("66ADC510-0CA2-475D-A343-57192BCE38BF")]
public interface CodeModelEvents : EnvDTE80._CodeModelEvents, EnvDTE80._dispCodeModelEvents_Event
type CodeModelEvents = interface
    interface _CodeModelEvents
    interface _dispCodeModelEvents_Event
Public Interface CodeModelEvents
Implements _CodeModelEvents, _dispCodeModelEvents_Event
Derived
Attributes
Implements

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  

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.

Applies to