This documentation is archived and is not being maintained.

VCCodeIDLImport Interface 

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

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

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

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

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

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

Sub GetFirstIDLImport()
    Dim vcCM As VCCodeModel
    Dim vcIDLImport As VCCodeIDLImport
    vcCM = DTE.Solution.Item(1).CodeModel
    vcIDLImport = vcCM.IDLImports.Item(1)
    MsgBox(vcIDLImport.DisplayName)
End Sub
Show: