OANavigableProjectItems.AddFromFileCopy Method
Copies a source file and adds it to the project.
Namespace: Microsoft.VisualStudio.Data.Schema.Project.Automation
Assembly: Microsoft.VisualStudio.Data.Schema.Project (in Microsoft.VisualStudio.Data.Schema.Project.dll)
Syntax
'Declaration
Public Overridable Function AddFromFileCopy ( _
filePath As String _
) As ProjectItem
'Usage
Dim instance As OANavigableProjectItems
Dim filePath As String
Dim returnValue As ProjectItem
returnValue = instance.AddFromFileCopy(filePath)
public virtual ProjectItem AddFromFileCopy(
string filePath
)
public:
virtual ProjectItem^ AddFromFileCopy(
String^ filePath
)
public function AddFromFileCopy(
filePath : String
) : ProjectItem
abstract AddFromFileCopy :
filePath:string -> ProjectItem
override AddFromFileCopy :
filePath:string -> ProjectItem
Parameters
- filePath
Type: System.String
The path and file name of the project item to be added
Return Value
Type: EnvDTE.ProjectItem
Implements
ProjectItems.AddFromFileCopy(String)
.NET Framework Security
- 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.
See Also
Reference
OANavigableProjectItems Members
Microsoft.VisualStudio.Data.Schema.Project.Automation Namespace