This topic has not yet been rated - Rate this topic

VCCodeIDLLibrary.Functions Property

Gets a collection of functions for the object.

Namespace:  Microsoft.VisualStudio.VCCodeModel
Assembly:  Microsoft.VisualStudio.VCCodeModel (in Microsoft.VisualStudio.VCCodeModel.dll)
CodeElements Functions { get; }

Property Value

Type: EnvDTE.CodeElements
A CodeElements collection.

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

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
Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.