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 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
)
abstract AddFromFileCopy : 
        filePath:string -> ProjectItem 
override AddFromFileCopy : 
        filePath:string -> ProjectItem 
public 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

OANavigableProjectItems Class

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