Compartilhar via


VCCodeIDLLibrary.IDLCoClasses Property

Definition

Gets the collection of CoClass statements from the .idl file of the parent object.

public:
 property EnvDTE::CodeElements ^ IDLCoClasses { EnvDTE::CodeElements ^ get(); };
[System.Runtime.InteropServices.DispId(587)]
public EnvDTE.CodeElements IDLCoClasses { [System.Runtime.InteropServices.DispId(587)] [System.Runtime.InteropServices.TypeLibFunc(System.Runtime.InteropServices.TypeLibFuncFlags.FNonBrowsable)] get; }
[<System.Runtime.InteropServices.DispId(587)>]
[<get: System.Runtime.InteropServices.DispId(587)>]
[<get: System.Runtime.InteropServices.TypeLibFunc(System.Runtime.InteropServices.TypeLibFuncFlags.FNonBrowsable)>]
member this.IDLCoClasses : EnvDTE.CodeElements
Public ReadOnly Property IDLCoClasses As CodeElements

Property Value

A CodeElements collection.

Attributes

Examples

This example displays the name of each CoClass code element in the solution.

Sub AllCoClasses()  
    Dim codeModel As VCCodeModel  
    codeModel = DTE.Solution.Item(1).CodeModel  
    Dim vcCoClass As VCCodeIDLCoClass  
    For Each vcCoClass In codeModel.IDLLibraries.Item(1).IDLCoClasses  
        MsgBox(vcCoClass.DisplayName)  
    Next  
End Sub  

Remarks

See How to: Compile Example Code for Visual C++ Code Model Extensibility for information on how to compile and run this sample.

Applies to