VsShellUtilities::RenameDocument Method (IServiceProvider^, String^, String^)

 

Renames the specified document.

Namespace:   Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)

public:
static void RenameDocument(
	IServiceProvider^ site,
	String^ oldName,
	String^ newName
)

Parameters

site
Type: System::IServiceProvider^

IServiceProvider.

oldName
Type: System::String^

The current absolute path of the document.

newName
Type: System::String^

The new absolute path of the document.

Return to top
Show: