UpdateExtensions.AddLinkFiles 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 files as links into the project.
public static Microsoft.VisualStudio.ProjectSystem.Query.IAsyncUpdatable<Microsoft.VisualStudio.ProjectSystem.Query.IProjectSnapshot> AddLinkFiles (this Microsoft.VisualStudio.ProjectSystem.Query.IAsyncUpdatable<Microsoft.VisualStudio.ProjectSystem.Query.IProjectSnapshot> projects, System.Collections.Generic.IEnumerable<string> itemPaths, string targetFolder, string? itemType = default);
static member AddLinkFiles : 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 AddLinkFiles (projects As IAsyncUpdatable(Of IProjectSnapshot), itemPaths As IEnumerable(Of String), targetFolder 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.
- itemPaths
- IEnumerable<String>
Path of file items. They must be outside of the project cone.
- targetFolder
- 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.