Export (0) Print
Expand All

VCCodeIDLImportLib Interface 

An object defining an importlib element in an .idl file.

Namespace: Microsoft.VisualStudio.VCCodeModel
Assembly: Microsoft.VisualStudio.VCCodeModel (in microsoft.visualstudio.vccodemodel.dll)

[GuidAttribute("17730D57-271F-11D7-8BF6-00B0D03DAA06")] 
public interface VCCodeIDLImportLib
/** @attribute GuidAttribute("17730D57-271F-11D7-8BF6-00B0D03DAA06") */ 
public interface VCCodeIDLImportLib
GuidAttribute("17730D57-271F-11D7-8BF6-00B0D03DAA06") 
public interface VCCodeIDLImportLib

The VCCodeIDLImportLib object represents an importlib code element from the .idl file of the parent solution. Primarily, the object is used to access the elements of an existing importlib code element.

See Samples for Code Model Extensibility for information on how to compile and run this sample.

This example retrieves the first importlib code statement and displays it in a message box.

Sub GetFirstIDLImportLib()
    Dim vcCM As VCCodeModel
    Dim vcIDLImportLib As VCCodeIDLImportLib
    vcCM = DTE.Solution.Item(1).CodeModel
    vcIDLImportLib = vcCM.IDLLibraries.Item(1).IDLImportLibs.Item(1)
    MsgBox(vcIDLImportLib.DisplayName)
End Sub
Show:
© 2014 Microsoft