VCCodeUsing - интерфейс
An object representing a The #using Directive code element in the source code of a solution.
Пространство имен: Microsoft.VisualStudio.VCCodeModel
Сборка: Microsoft.VisualStudio.VCCodeModel (в Microsoft.VisualStudio.VCCodeModel.dll)
Синтаксис
'Декларация
<GuidAttribute("17730D55-271F-11D7-8BF6-00B0D03DAA06")> _
Public Interface VCCodeUsing
'Применение
Dim instance As VCCodeUsing
[GuidAttribute("17730D55-271F-11D7-8BF6-00B0D03DAA06")]
public interface VCCodeUsing
[GuidAttribute(L"17730D55-271F-11D7-8BF6-00B0D03DAA06")]
public interface class VCCodeUsing
public interface VCCodeUsing
Заметки
The VCCodeUsing object represents a #using code element in a source file, allowing access to information about that specific code element.
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 VCCodeUsing object of the current solution and displays it in a message box.
Sub GetFirstUsing()
Dim vcCM As VCCodeModel
Dim vcUsing As VCCodeUsing
vcCM = DTE.Solution.Item(1).CodeModel
vcUsing = vcCM.Usings.Item(1)
MsgBox(vcUsing.DisplayName)
End Sub