Поделиться через


VCFileCodeModel.Functions - свойство

Gets a collection of functions for the object.

Пространство имен:  Microsoft.VisualStudio.VCCodeModel
Сборка:  Microsoft.VisualStudio.VCCodeModel (в Microsoft.VisualStudio.VCCodeModel.dll)

Синтаксис

'Декларация
ReadOnly Property Functions As CodeElements
'Применение
Dim instance As VCFileCodeModel
Dim value As CodeElements

value = instance.Functions
CodeElements Functions { get; }
property CodeElements^ Functions {
    CodeElements^ get ();
}
function get Functions () : CodeElements

Значение свойства

Тип: 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

Разрешения

  • Полное доверие для непосредственно вызывающего метода. Этот член не может быть использован частично доверенным кодом. Дополнительные сведения см. в разделе Using Libraries from Partially Trusted Code.

См. также

Ссылки

VCFileCodeModel Интерфейс

VCFileCodeModel - члены

Microsoft.VisualStudio.VCCodeModel - пространство имен