Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Gets a collection of functions for the object.
Namespace: Microsoft.VisualStudio.VCCodeModel
Assembly: Microsoft.VisualStudio.VCCodeModel (in Microsoft.VisualStudio.VCCodeModel.dll)
Syntax
'Declaration
ReadOnly Property Functions As CodeElements
CodeElements Functions { get; }
property CodeElements^ Functions {
CodeElements^ get ();
}
abstract Functions : CodeElements with get
function get Functions () : CodeElements
Property Value
Type: EnvDTE.CodeElements
A CodeElements collection.
Remarks
See How to: Compile Example Code for Visual C++ Code Model Extensibility for information on how to compile and run this sample.
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
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.