VCCodeModel.Functions VCCodeModel.Functions VCCodeModel.Functions Property

Definition

Gets a collection of functions for the object.

[System.Runtime.InteropServices.DispId(551)]
[get: System.Runtime.InteropServices.DispId(551)]
[get: System.Runtime.InteropServices.TypeLibFunc(System.Runtime.InteropServices.TypeLibFuncFlags.FNonBrowsable)]
public EnvDTE.CodeElements Functions { get; }
member this.Functions : EnvDTE.CodeElements
Public ReadOnly Property Functions As CodeElements
Property Value

Examples

This example retrieves a collection of all global functions and displays their names.

Sub GetGlobalFunctions()  
    Dim vcElement As VCCodeElement  
    Dim vcElements As VCCodeElements  
    vcElements = DTE.Solution.Item(1).CodeModel.Functions  
    For Each vcElement In vcElements  
        MsgBox(vcElement.DisplayName)  
    Next  
End Sub  

See How to: Compile Example Code for Visual C++ Code Model Extensibility for information on how to compile and run this sample.

Applies to