VCCodeStruct.Functions Property
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.
Gets a collection of functions for the object.
public:
property EnvDTE::CodeElements ^ Functions { EnvDTE::CodeElements ^ get(); };
[System.Runtime.InteropServices.DispId(579)]
public EnvDTE.CodeElements Functions { [System.Runtime.InteropServices.DispId(579)] [System.Runtime.InteropServices.TypeLibFunc(System.Runtime.InteropServices.TypeLibFuncFlags.FNonBrowsable)] get; }
[<System.Runtime.InteropServices.DispId(579)>]
[<get: System.Runtime.InteropServices.DispId(579)>]
[<get: System.Runtime.InteropServices.TypeLibFunc(System.Runtime.InteropServices.TypeLibFuncFlags.FNonBrowsable)>]
member this.Functions : EnvDTE.CodeElements
Public ReadOnly Property Functions As CodeElements
Property Value
A CodeElements collection.
- Attributes
Examples
This example retrieves a collection of all global functions and displays their names.
[Visual Basic]
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