VCCodeUsing Interface
An object representing a The #using Directive code element in the source code of a solution.
Namespace: Microsoft.VisualStudio.VCCodeModel
Assembly: Microsoft.VisualStudio.VCCodeModel (in Microsoft.VisualStudio.VCCodeModel.dll)
Syntax
'إقرار
<GuidAttribute("CAA963E1-A9F7-4831-9A12-22AD4F33C4A2")> _
Public Interface VCCodeUsing
'الاستخدام
Dim instance As VCCodeUsing
[GuidAttribute("CAA963E1-A9F7-4831-9A12-22AD4F33C4A2")]
public interface VCCodeUsing
[GuidAttribute(L"CAA963E1-A9F7-4831-9A12-22AD4F33C4A2")]
public interface class VCCodeUsing
[<GuidAttribute("CAA963E1-A9F7-4831-9A12-22AD4F33C4A2")>]
type VCCodeUsing = interface end
public interface VCCodeUsing
Remarks
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.
Examples
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