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)
Syntax
<GuidAttribute("17730D56-271F-11D7-8BF6-00B0D03DAA06")> _
Public Interface VCCodeIDLImport
Dim instance As VCCodeIDLImport
[GuidAttribute("17730D56-271F-11D7-8BF6-00B0D03DAA06")]
public interface VCCodeIDLImport
[GuidAttribute(L"17730D56-271F-11D7-8BF6-00B0D03DAA06")]
public interface class VCCodeIDLImport
public interface VCCodeIDLImport
Remarks
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 How to: Compile Example Code for Visual C++ Code Model Extensibility for information on how to compile and run this sample.
Examples
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