Share via


UpdateExtensions.AddFiles Method

Definition

Overloads

AddFiles(IAsyncUpdatable<ISolutionFolderSnapshot>, IEnumerable<String>)

Add existing files to a solution folder.

AddFiles(IAsyncUpdatable<ISolutionSnapshot>, IEnumerable<String>)

Add existing files to the solution.

AddFiles(IAsyncUpdatable<IProjectSnapshot>, IEnumerable<String>, String)

Add existing files to the project.

AddFiles(IAsyncUpdatable<ISolutionFolderSnapshot>, IEnumerable<String>)

Add existing files to a solution folder.

public static Microsoft.VisualStudio.ProjectSystem.Query.IAsyncUpdatable<Microsoft.VisualStudio.ProjectSystem.Query.ISolutionFolderSnapshot> AddFiles (this Microsoft.VisualStudio.ProjectSystem.Query.IAsyncUpdatable<Microsoft.VisualStudio.ProjectSystem.Query.ISolutionFolderSnapshot> solutionFolders, System.Collections.Generic.IEnumerable<string> itemPaths);
static member AddFiles : Microsoft.VisualStudio.ProjectSystem.Query.IAsyncUpdatable<Microsoft.VisualStudio.ProjectSystem.Query.ISolutionFolderSnapshot> * seq<string> -> Microsoft.VisualStudio.ProjectSystem.Query.IAsyncUpdatable<Microsoft.VisualStudio.ProjectSystem.Query.ISolutionFolderSnapshot>
<Extension()>
Public Function AddFiles (solutionFolders As IAsyncUpdatable(Of ISolutionFolderSnapshot), itemPaths As IEnumerable(Of String)) As IAsyncUpdatable(Of ISolutionFolderSnapshot)

Parameters

solutionFolders
IAsyncUpdatable<ISolutionFolderSnapshot>

A set of solution folders where this change should apply to.

itemPaths
IEnumerable<String>

A set of paths of file items

Returns

A set of solution folders updated.

Applies to

AddFiles(IAsyncUpdatable<ISolutionSnapshot>, IEnumerable<String>)

Add existing files to the solution.

public static Microsoft.VisualStudio.ProjectSystem.Query.IAsyncUpdatable<Microsoft.VisualStudio.ProjectSystem.Query.ISolutionSnapshot> AddFiles (this Microsoft.VisualStudio.ProjectSystem.Query.IAsyncUpdatable<Microsoft.VisualStudio.ProjectSystem.Query.ISolutionSnapshot> solutions, System.Collections.Generic.IEnumerable<string> itemPaths);
static member AddFiles : Microsoft.VisualStudio.ProjectSystem.Query.IAsyncUpdatable<Microsoft.VisualStudio.ProjectSystem.Query.ISolutionSnapshot> * seq<string> -> Microsoft.VisualStudio.ProjectSystem.Query.IAsyncUpdatable<Microsoft.VisualStudio.ProjectSystem.Query.ISolutionSnapshot>
<Extension()>
Public Function AddFiles (solutions As IAsyncUpdatable(Of ISolutionSnapshot), itemPaths As IEnumerable(Of String)) As IAsyncUpdatable(Of ISolutionSnapshot)

Parameters

solutions
IAsyncUpdatable<ISolutionSnapshot>

A set of solutions where this change should apply to.

itemPaths
IEnumerable<String>

A set of paths of file items

Returns

A set of solution folders updated.

Applies to

AddFiles(IAsyncUpdatable<IProjectSnapshot>, IEnumerable<String>, String)

Add existing files to the project.

public static Microsoft.VisualStudio.ProjectSystem.Query.IAsyncUpdatable<Microsoft.VisualStudio.ProjectSystem.Query.IProjectSnapshot> AddFiles (this Microsoft.VisualStudio.ProjectSystem.Query.IAsyncUpdatable<Microsoft.VisualStudio.ProjectSystem.Query.IProjectSnapshot> projects, System.Collections.Generic.IEnumerable<string> itemPaths, string? itemType = default);
static member AddFiles : Microsoft.VisualStudio.ProjectSystem.Query.IAsyncUpdatable<Microsoft.VisualStudio.ProjectSystem.Query.IProjectSnapshot> * seq<string> * string -> Microsoft.VisualStudio.ProjectSystem.Query.IAsyncUpdatable<Microsoft.VisualStudio.ProjectSystem.Query.IProjectSnapshot>
<Extension()>
Public Function AddFiles (projects As IAsyncUpdatable(Of IProjectSnapshot), itemPaths As IEnumerable(Of 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>

A set of paths of file items

itemType
String

The optional item type of new files. (This might not be supported by all project systems.)

Returns

A set of projects updated.

Applies to