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
声明
Sub IncludeHeaderFile ( _
HeaderFile As String, _
FileName As String _
)
用法
Dim instance As VCProject
Dim HeaderFile As String
Dim FileName As String
instance.IncludeHeaderFile(HeaderFile, _
FileName)
void IncludeHeaderFile(
string HeaderFile,
string FileName
)
void IncludeHeaderFile(
[InAttribute] String^ HeaderFile,
[InAttribute] String^ FileName
)
function IncludeHeaderFile(
HeaderFile : String,
FileName : String
)
Parameters
HeaderFile
Type: System.StringFile 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.StringThe file name of a file to which to add the #include directive, if the project does not include a pre-compiled header file.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.