CodeModelEvents Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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) |