Compartir a través de


VsShellUtilities.RenameDocument Method

Renames the specified document.

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

Syntax

'Declaración
Public Shared Sub RenameDocument ( _
    site As IServiceProvider, _
    oldName As String, _
    newName As String _
)
public static void RenameDocument(
    IServiceProvider site,
    string oldName,
    string newName
)

Parameters

  • oldName
    Type: System.String
    The current absolute path of the document.
  • newName
    Type: System.String
    The new absolute path of the document.

.NET Framework Security

See Also

Reference

VsShellUtilities Class

Microsoft.VisualStudio.Shell Namespace