VsShellUtilities.RenameDocument(IServiceProvider, String, String) 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.
Renames the specified document.
public:
static void RenameDocument(IServiceProvider ^ site, System::String ^ oldName, System::String ^ newName);
public static void RenameDocument (IServiceProvider site, string oldName, string newName);
static member RenameDocument : IServiceProvider * string * string -> unit
Public Shared Sub RenameDocument (site As IServiceProvider, oldName As String, newName As String)
Public Sub RenameDocument (site As IServiceProvider, oldName As String, newName As String)
Parameters
- site
- IServiceProvider
The service provider.
- oldName
- String
Full path to the old name of the document.
- newName
- String
Full path to the new name of the document.