VCProject.IncludeHeaderFile Method

Adds a #include HeaderFile directive to a pre-compiled header file, or to a specified file.

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

Syntax

'Declaration
Sub IncludeHeaderFile ( _
    HeaderFile As String, _
    FileName As String _
)
void IncludeHeaderFile(
    string HeaderFile,
    string FileName
)
void IncludeHeaderFile(
    [InAttribute] String^ HeaderFile, 
    [InAttribute] String^ FileName
)
abstract IncludeHeaderFile : 
        HeaderFile:string * 
        FileName:string -> unit
function IncludeHeaderFile(
    HeaderFile : String, 
    FileName : String
)

Parameters

  • HeaderFile
    Type: System.String

    File name of the header file that is to be included in an existing header, or in a header file created with the FileName as the file name.

  • FileName
    Type: System.String

    The file name of a file to which to add the #include directive, if the project does not include a pre-compiled header file.

.NET Framework Security

See Also

Reference

VCProject Interface

Microsoft.VisualStudio.VCProjectEngine Namespace