ProjectManager.Rename(RenameParams, Boolean) Method

Definition

Returns the workspace edit that describes the changes to be done if the symbol at the given position - if any - is renamed to the given name.

public Microsoft.VisualStudio.LanguageServer.Protocol.WorkspaceEdit? Rename (Microsoft.VisualStudio.LanguageServer.Protocol.RenameParams? param, bool versionedChanges);
member this.Rename : Microsoft.VisualStudio.LanguageServer.Protocol.RenameParams * bool -> Microsoft.VisualStudio.LanguageServer.Protocol.WorkspaceEdit
Public Function Rename (param As RenameParams, versionedChanges As Boolean) As WorkspaceEdit

Parameters

param
RenameParams
versionedChanges
Boolean

Returns

WorkspaceEdit

Remarks

Returns null if no symbol exists at the specified position, or if some parameters are unspecified (null), or if the specified position is not a valid position within the file, or if a file affected by the rename operation belongs to several compilation units.

Applies to