Udostępnij za pośrednictwem


IInterfaceInfo.Functions Property

Definition

Gets a collection of functions for the parent object.

public:
 property System::Object ^ Functions { System::Object ^ get(); };
public:
 property Platform::Object ^ Functions { Platform::Object ^ get(); };
[System.Runtime.InteropServices.DispId(1610743813)]
public object Functions { [System.Runtime.InteropServices.DispId(1610743813)] get; }
[<System.Runtime.InteropServices.DispId(1610743813)>]
[<get: System.Runtime.InteropServices.DispId(1610743813)>]
member this.Functions : obj
Public ReadOnly Property Functions As Object

Property Value

A collection of functions for the parent object.

Attributes

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 about how to compile and run this example.

Applies to