Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

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:
© 2015 Microsoft