OAProjectItems.AddFromFileCopy Method

Copies a source file and adds it to the project.

Namespace:  Microsoft.VisualStudio.Package.Automation
Assembly:  MPF.Project.NonShipping (in MPF.Project.NonShipping.dll)

Syntax

'宣言
Public Overrides Function AddFromFileCopy ( _
    filePath As String _
) As ProjectItem
'使用
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

Parameters

Return Value

Type: ProjectItem

Returns a ProjectItem object.

Implements

ProjectItemsAddFromFileCopy(String)

Permissions

See Also

Reference

OAProjectItems Class

OAProjectItems Members

Microsoft.VisualStudio.Package.Automation Namespace

AddFromFileCopy(String)