ProjectManager.Rename(RenameParams, Boolean) 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.
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
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.