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
filePath
Type: System.StringThe absolute path of the file.
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
- 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.