Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Gets a collection of functions for the object.
Namespace: Microsoft.VisualStudio.VCCodeModel
Assembly: Microsoft.VisualStudio.VCCodeModel (in Microsoft.VisualStudio.VCCodeModel.dll)
Syntax
ReadOnly Property Functions As CodeElements
Dim instance As VCCodeModel
Dim value As CodeElements
value = instance.Functions
CodeElements Functions { get; }
property CodeElements^ Functions {
CodeElements^ get ();
}
function get Functions () : CodeElements
Property Value
Type: CodeElements
A CodeElements collection.
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.
Permissions
- 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.