AddFromFileCopy Method

Copies a source file and adds it to the project.

Namespace:  Microsoft.VisualStudio.Data.Tools.Package.Internal
Assembly:  Microsoft.VisualStudio.Data.Tools.Package (in Microsoft.VisualStudio.Data.Tools.Package.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
abstract AddFromFileCopy : 
        filePath:string -> ProjectItem 
override AddFromFileCopy : 
        filePath:string -> ProjectItem 
public override function AddFromFileCopy(
    filePath : String
) : ProjectItem

Parameters

  • filePath
    Type: System..::..String
    The path and file name of the project item to be added.

Return Value

Type: ProjectItem
A ProjectItem object.

Implements

ProjectItemsAddFromFileCopy(String)

See Also

Reference

OAProjectItems Class

Microsoft.VisualStudio.Data.Tools.Package.Internal Namespace