Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets the collection of importlib statements from the .idl file of the parent object.
Namespace:  Microsoft.VisualStudio.VCCodeModel
Assembly:  Microsoft.VisualStudio.VCCodeModel (in Microsoft.VisualStudio.VCCodeModel.dll)
Syntax
'Declaration
ReadOnly Property IDLImportLibs As CodeElements
'Usage
Dim instance As VCCodeIDLLibrary 
Dim value As CodeElements 
value = instance.IDLImportLibs
CodeElements IDLImportLibs { get; }
property CodeElements^ IDLImportLibs {
    CodeElements^ get ();
}
function get IDLImportLibs () : 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 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
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.