VCCodeIDLImport - интерфейс
An object defining an import element in an .idl file.
Пространство имен: Microsoft.VisualStudio.VCCodeModel
Сборка: Microsoft.VisualStudio.VCCodeModel (в Microsoft.VisualStudio.VCCodeModel.dll)
Синтаксис
'Декларация
<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
Заметки
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.
Примеры
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