UpdateExtensions.AddFilesFromCopy Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds a file as a new copy into the project.
public static Microsoft.VisualStudio.ProjectSystem.Query.IAsyncUpdatable<Microsoft.VisualStudio.ProjectSystem.Query.IProjectSnapshot> AddFilesFromCopy (this Microsoft.VisualStudio.ProjectSystem.Query.IAsyncUpdatable<Microsoft.VisualStudio.ProjectSystem.Query.IProjectSnapshot> projects, System.Collections.Generic.IEnumerable<string> originalFilePaths, string targetFolderPath, string? itemType = default);
static member AddFilesFromCopy : Microsoft.VisualStudio.ProjectSystem.Query.IAsyncUpdatable<Microsoft.VisualStudio.ProjectSystem.Query.IProjectSnapshot> * seq<string> * string * string -> Microsoft.VisualStudio.ProjectSystem.Query.IAsyncUpdatable<Microsoft.VisualStudio.ProjectSystem.Query.IProjectSnapshot>
<Extension()>
Public Function AddFilesFromCopy (projects As IAsyncUpdatable(Of IProjectSnapshot), originalFilePaths As IEnumerable(Of String), targetFolderPath As String, Optional itemType As String = Nothing) As IAsyncUpdatable(Of IProjectSnapshot)
Parameters
- projects
- IAsyncUpdatable<IProjectSnapshot>
A set of projects where this change should apply to.
- originalFilePaths
- IEnumerable<String>
A set of paths of file items on the file system of the project system.
- targetFolderPath
- String
A relative path of a folder inside the project.
- itemType
- String
The optional item type of new files. (This might not be supported by all project systems.)
Returns
A set of projects updated.