다음을 통해 공유


VCProject Interface

This object exposes the properties on a Visual C++ project.

Namespace:  Microsoft.VisualStudio.VCProjectEngine
Assembly:  Microsoft.VisualStudio.VCProjectEngine (in Microsoft.VisualStudio.VCProjectEngine.dll)

Syntax

<GuidAttribute("238B5174-2429-11D7-8BF6-00B0D03DAA06")> _
Public Interface VCProject _
    Implements VCProjectItem

Dim instance As VCProject
[GuidAttribute("238B5174-2429-11D7-8BF6-00B0D03DAA06")]
public interface VCProject : VCProjectItem
[GuidAttribute(L"238B5174-2429-11D7-8BF6-00B0D03DAA06")]
public interface class VCProject : VCProjectItem
public interface VCProject extends VCProjectItem

Examples

' Add a reference to Microsoft.VisualStudio.VCProjectEngine and have a 
' Visual C++ project loaded before running this example.
Imports EnvDTE
Imports Microsoft.VisualStudio.VCProjectEngine
Public Module Module1
    Sub Test()
        Dim prj As VCProject
        Dim vcar As VCAssemblyReference
        Dim refcfg As VCReferenceConfiguration

        prj = DTE.Solution.Projects.Item(1).Object
        If prj.CanAddAssemblyReference("C:\Program Files\ _
        Microsoft Visual Studio 8\Common7\IDE\ _
        PublicAssemblies\envdte.dll") Then
           vcar = prj.AddAssemblyReference("C:\Program Files\ _
           Microsoft Visual Studio 8\Common7\IDE\ _
           PublicAssemblies\envdte.dll")
        End If
        refcfg = vcar.ReferenceConfigurations.Item(1)
        MsgBox("Consumable? " & refcfg.ConsumableByDesigner)
    End Sub
End Module

See Also

Reference

VCProject Members

Microsoft.VisualStudio.VCProjectEngine Namespace