OANavigableProjectItems.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 Overridable Function AddFromFileCopy ( _
    filePath As String _
) As ProjectItem
'使用
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

Parameters

Return Value

Type: ProjectItem

When implemented by derived classes, the newly-created ProjectItem.

Implements

ProjectItemsAddFromFileCopy(String)

Remarks

By default this method is not implemented and throws a NotImplementedException.

Permissions

See Also

Reference

OANavigableProjectItems Class

OANavigableProjectItems Members

Microsoft.VisualStudio.Package.Automation Namespace