Właściwość VCCodeModel.Functions —

Pobiera Kolekcja funkcji dla obiektu.

Przestrzeń nazw:  Microsoft.VisualStudio.VCCodeModel
Zestaw:  Microsoft.VisualStudio.VCCodeModel (w Microsoft.VisualStudio.VCCodeModel.dll)

Składnia

'Deklaracja
ReadOnly Property Functions As CodeElements
CodeElements Functions { get; }
property CodeElements^ Functions {
    CodeElements^ get ();
}
abstract Functions : CodeElements with get
function get Functions () : CodeElements

Wartość właściwości

Typ: CodeElements
Kolekcja CodeElements.

Przykłady

W tym przykładzie pobiera zbiór wszystkie funkcje globalne i wyświetla ich nazwy.

    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

Zobacz Porady: kompilowanie przykładowego kodu dla rozszerzalności modelu kodu Visual C++ informacji na temat sposobu skompilować i uruchomić ten przykład.

Zabezpieczenia programu .NET Framework

Zobacz też

Informacje

VCCodeModel Interfejs

Przestrzeń nazw Microsoft.VisualStudio.VCCodeModel