OAProjectItems.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 Overrides Function AddFromFileCopy ( _
filePath As String _
) As ProjectItem
'Usage
Dim instance As OAProjectItems
Dim filePath As String
Dim returnValue As ProjectItem
returnValue = instance.AddFromFileCopy(filePath)
public override ProjectItem AddFromFileCopy(
string filePath
)
public:
virtual ProjectItem^ AddFromFileCopy(
String^ filePath
) override
public override 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
Microsoft.VisualStudio.Data.Schema.Project.Automation Namespace