다음을 통해 공유


VsShellUtilities.RenameDocument(IServiceProvider, String, String) Method

Definition

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.

Applies to