Partager via


VCCodeIDLLibrary.IDLImportLibs Property

Definition

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

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

Property Value

A CodeElements collection.

Attributes

Examples

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

Sub AllImportLibs()  
    Dim codeModel As VCCodeModel  
    codeModel = DTE.Solution.Item(1).CodeModel  
    Dim vcImpLib As VCCodeIDLImportLib  
    For Each vcImpLib In codeModel.IDLLibraries.Item(1).IDLImportLibs  
        MsgBox(vcImpLib.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