Condividi tramite


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
[System.Runtime.InteropServices.CoClass(typeof(EnvDTE80.CodeModelEventsClass))]
[System.Runtime.InteropServices.Guid("66ADC510-0CA2-475D-A343-57192BCE38BF")]
[System.Runtime.InteropServices.ComVisible(false)]
public interface CodeModelEvents : EnvDTE80._CodeModelEvents, EnvDTE80._dispCodeModelEvents_Event
[<System.Runtime.InteropServices.CoClass(typeof(EnvDTE80.CodeModelEventsClass))>]
[<System.Runtime.InteropServices.Guid("66ADC510-0CA2-475D-A343-57192BCE38BF")>]
type CodeModelEvents = interface
    interface _CodeModelEvents
    interface _dispCodeModelEvents_Event
[<System.Runtime.InteropServices.CoClass(typeof(EnvDTE80.CodeModelEventsClass))>]
[<System.Runtime.InteropServices.Guid("66ADC510-0CA2-475D-A343-57192BCE38BF")>]
[<System.Runtime.InteropServices.ComVisible(false)>]
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.

Methods

add_ElementAdded(_dispCodeModelEvents_ElementAddedEventHandler) (Inherited from _dispCodeModelEvents_Event)
add_ElementChanged(_dispCodeModelEvents_ElementChangedEventHandler) (Inherited from _dispCodeModelEvents_Event)
add_ElementDeleted(_dispCodeModelEvents_ElementDeletedEventHandler) (Inherited from _dispCodeModelEvents_Event)
remove_ElementAdded(_dispCodeModelEvents_ElementAddedEventHandler) (Inherited from _dispCodeModelEvents_Event)
remove_ElementChanged(_dispCodeModelEvents_ElementChangedEventHandler) (Inherited from _dispCodeModelEvents_Event)
remove_ElementDeleted(_dispCodeModelEvents_ElementDeletedEventHandler) (Inherited from _dispCodeModelEvents_Event)

Events

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)

Applies to