ItemOperations::AddExistingItem Method (String^)
Visual Studio 2015
Adds an existing item to the current project.
Assembly: EnvDTE (in EnvDTE.dll)
Parameters
- FileName
-
Type:
System::String^
Required. The full path and file name of the item to be added.
Sub AddExistingItemExample() Dim ItemOp As ItemOperations ItemOp = DTE.ItemOperations ' Add a log file to the project. ItemOp.AddExistingItem("d:\windows\ocgen.log") End Sub
Show: