Export (0) Print
Expand All
Expand Minimize

IncludeDirectories Property

Visual Studio .NET 2003

Path to use when searching for include files while building a Visual C++ project. Corresponds to environment variable INCLUDE.

[Visual Basic .NET]
Public Property IncludeDirectories() As String
[Visual Basic 6]
Property Get IncludeDirectories() As String
Property Let IncludeDirectories( _
   ByVal NewValue As String _
HRESULT __stdcall get_IncludeDirectories(
   /* [out, retval] */ BSTR* retVal
HRESULT __stdcall put_IncludeDirectories(
   /* [in] */ BSTR NewValue
public string IncludeDirectories {get; set;}
[JScript .NET]
public function get IncludeDirectories() : String
public function set IncludeDirectories(
   NewValue : String


The following sample code modifies the IncludeDirectories property in the development environment:

' add reference to Microsoft.VisualStudio.VCProjectEngine
Imports EnvDTE
Imports Microsoft.VisualStudio.VCProjectEngine

Public Module Module1
    Sub Test()
        Dim prj As VCProject
        Dim cfgs, tools As IVCCollection
        Dim cfg As VCConfiguration
        Dim p As VCPlatform
        Dim x As String
        prj = DTE.Solution.Projects.Item(1).Object
        p = prj.Platforms(1)
        x = p.IncludeDirectories
        p.IncludeDirectories = x + ";something"
    End Sub
End Module

See Samples for Project Model Extensibility for information on how to compile and run this sample.

See Also

Applies To: VCPlatform Object

© 2015 Microsoft