VCCodeIDLLibrary.IDLCoClasses Property

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

Namespace:  Microsoft.VisualStudio.VCCodeModel
Assembly:  Microsoft.VisualStudio.VCCodeModel (in Microsoft.VisualStudio.VCCodeModel.dll)

Syntax

'Declaração
ReadOnly Property IDLCoClasses As CodeElements
    Get
CodeElements IDLCoClasses { get; }
property CodeElements^ IDLCoClasses {
    CodeElements^ get ();
}
abstract IDLCoClasses : CodeElements
function get IDLCoClasses () : CodeElements

Property Value

Type: EnvDTE.CodeElements
A CodeElements collection.

Remarks

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

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

.NET Framework Security

See Also

Reference

VCCodeIDLLibrary Interface

Microsoft.VisualStudio.VCCodeModel Namespace