Share via


UpdateExtensions.RenameFile Method

Definition

Renames a file in the project(s).

public static Microsoft.VisualStudio.ProjectSystem.Query.IAsyncUpdatable<Microsoft.VisualStudio.ProjectSystem.Query.IProjectSnapshot> RenameFile (this Microsoft.VisualStudio.ProjectSystem.Query.IAsyncUpdatable<Microsoft.VisualStudio.ProjectSystem.Query.IProjectSnapshot> projects, string filePath, string newName);
static member RenameFile : Microsoft.VisualStudio.ProjectSystem.Query.IAsyncUpdatable<Microsoft.VisualStudio.ProjectSystem.Query.IProjectSnapshot> * string * string -> Microsoft.VisualStudio.ProjectSystem.Query.IAsyncUpdatable<Microsoft.VisualStudio.ProjectSystem.Query.IProjectSnapshot>
<Extension()>
Public Function RenameFile (projects As IAsyncUpdatable(Of IProjectSnapshot), filePath As String, newName As String) As IAsyncUpdatable(Of IProjectSnapshot)

Parameters

projects
IAsyncUpdatable<IProjectSnapshot>

A set of projects to be updated.

filePath
String

The absolute or project relative path of the file to be renamed.

newName
String

The new name of the file.

Returns

A set of updated projects.

Applies to